205 references to DelegateKeyword
Microsoft.CodeAnalysis.CSharp (29)
Parser\LanguageParser.cs (22)
340
case SyntaxKind.
DelegateKeyword
:
804
var isAliasToFunctionPointer = alias != null && this.CurrentToken.Kind == SyntaxKind.
DelegateKeyword
;
1120
nextToken.Kind is SyntaxKind.EnumKeyword or SyntaxKind.
DelegateKeyword
||
1430
case SyntaxKind.
DelegateKeyword
:
1730
!(kind == SyntaxKind.
DelegateKeyword
&& this.PeekToken(1).Kind is SyntaxKind.OpenBraceToken or SyntaxKind.OpenParenToken))
1967
SyntaxKind.
DelegateKeyword
=>
1994
case SyntaxKind.
DelegateKeyword
:
2044
case SyntaxKind.
DelegateKeyword
when !IsFunctionPointerStart():
2203
case SyntaxKind.
DelegateKeyword
:
4239
case SyntaxKind.
DelegateKeyword
when IsFunctionPointerStart(): // Function pointer type
5175
Debug.Assert(this.CurrentToken.Kind == SyntaxKind.
DelegateKeyword
);
5177
var delegateToken = this.EatToken(SyntaxKind.
DelegateKeyword
);
6686
_ = EatToken(SyntaxKind.
DelegateKeyword
);
7174
var @delegate = EatToken(SyntaxKind.
DelegateKeyword
);
7332
=> CurrentToken.Kind == SyntaxKind.
DelegateKeyword
&& PeekToken(1).Kind == SyntaxKind.AsteriskToken;
9967
case SyntaxKind.
DelegateKeyword
:
10241
case SyntaxKind.
DelegateKeyword
:
10737
case SyntaxKind.
DelegateKeyword
:
10863
return this.PeekToken(tokenIndex).Kind == SyntaxKind.
DelegateKeyword
&&
12283
var @delegate = this.EatToken(SyntaxKind.
DelegateKeyword
);
12359
case SyntaxKind.
DelegateKeyword
:
12514
case SyntaxKind.
DelegateKeyword
:
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
586
AddKeyword(SyntaxKind.
DelegateKeyword
);
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
725
AddKeyword(SyntaxKind.
DelegateKeyword
);
Syntax\AnonymousMethodExpressionSyntax.cs (1)
44
Token(SyntaxKind.
DelegateKeyword
),
Syntax\SyntaxFactory.cs (1)
2759
? AnonymousMethodExpression(default(SyntaxTokenList), SyntaxFactory.Token(SyntaxKind.
DelegateKeyword
), parameterList, block, null)
Syntax\SyntaxKindFacts.cs (2)
973
return SyntaxKind.
DelegateKeyword
;
1613
case SyntaxKind.
DelegateKeyword
:
Syntax\SyntaxNormalizer.cs (1)
741
if (next.IsKind(SyntaxKind.AsteriskToken) && token.IsKind(SyntaxKind.
DelegateKeyword
))
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
CSharpSyntaxFacts.cs (1)
516
case SyntaxKind.
DelegateKeyword
:
CSharpSyntaxKinds.cs (1)
60
public int DelegateKeyword => (int)SyntaxKind.
DelegateKeyword
;
SemanticModelExtensions.cs (1)
154
case SyntaxKind.
DelegateKeyword
:
SpacingFormattingRule.cs (1)
367
if (currentKind == SyntaxKind.AsteriskToken && previousKind == SyntaxKind.
DelegateKeyword
)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
CSharpFixIncorrectConstraintCodeFixProvider.cs (1)
66
return enumOrDelegateKeyword.Kind() is SyntaxKind.EnumKeyword or SyntaxKind.
DelegateKeyword
;
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
1146
if (token.IsKind(SyntaxKind.
DelegateKeyword
) &&
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (1)
101
case SyntaxKind.
DelegateKeyword
:
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Formatting\Indentation\SmartTokenFormatterFormatRangeTests.cs (1)
2233
SyntaxKind.
DelegateKeyword
);
Microsoft.CodeAnalysis.CSharp.Features (4)
Completion\KeywordRecommenders\DelegateKeywordRecommender.cs (1)
25
: base(SyntaxKind.
DelegateKeyword
)
CSharpFixIncorrectConstraintCodeFixProvider.cs (1)
66
return enumOrDelegateKeyword.Kind() is SyntaxKind.EnumKeyword or SyntaxKind.
DelegateKeyword
;
QuickInfo\CSharpSemanticQuickInfoProvider.cs (1)
38
else if (token.IsKind(SyntaxKind.
DelegateKeyword
) && token.Parent.IsKind(SyntaxKind.AnonymousMethodExpression))
SignatureHelp\InvocationExpressionSignatureHelpProviderBase_DelegateAndFunctionPointerInvoke.cs (1)
67
displayParts.Add(Keyword(SyntaxKind.
DelegateKeyword
));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (158)
Generated\Syntax.Test.xml.Generated.cs (12)
41
=> InternalSyntaxFactory.FunctionPointerType(InternalSyntaxFactory.Token(SyntaxKind.
DelegateKeyword
), InternalSyntaxFactory.Token(SyntaxKind.AsteriskToken), null, GenerateFunctionPointerParameterList());
173
=> InternalSyntaxFactory.AnonymousMethodExpression(new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.SyntaxToken>(), InternalSyntaxFactory.Token(SyntaxKind.
DelegateKeyword
), null, GenerateBlock(), null);
506
=> InternalSyntaxFactory.DelegateDeclaration(new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.AttributeListSyntax>(), new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.SyntaxToken>(), InternalSyntaxFactory.Token(SyntaxKind.
DelegateKeyword
), GenerateIdentifierName(), InternalSyntaxFactory.Identifier("Identifier"), null, GenerateParameterList(), new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.TypeParameterConstraintClauseSyntax>(), InternalSyntaxFactory.Token(SyntaxKind.SemicolonToken));
835
Assert.Equal(SyntaxKind.
DelegateKeyword
, node.DelegateKeyword.Kind);
1350
Assert.Equal(SyntaxKind.
DelegateKeyword
, node.DelegateKeyword.Kind);
2809
Assert.Equal(SyntaxKind.
DelegateKeyword
, node.DelegateKeyword.Kind);
10017
=> SyntaxFactory.FunctionPointerType(SyntaxFactory.Token(SyntaxKind.
DelegateKeyword
), SyntaxFactory.Token(SyntaxKind.AsteriskToken), default(FunctionPointerCallingConventionSyntax), GenerateFunctionPointerParameterList());
10149
=> SyntaxFactory.AnonymousMethodExpression(new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.
DelegateKeyword
), default(ParameterListSyntax), GenerateBlock(), default(ExpressionSyntax));
10482
=> SyntaxFactory.DelegateDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.
DelegateKeyword
), GenerateIdentifierName(), SyntaxFactory.Identifier("Identifier"), default(TypeParameterListSyntax), GenerateParameterList(), new SyntaxList<TypeParameterConstraintClauseSyntax>(), SyntaxFactory.Token(SyntaxKind.SemicolonToken));
10811
Assert.Equal(SyntaxKind.
DelegateKeyword
, node.DelegateKeyword.Kind());
11326
Assert.Equal(SyntaxKind.
DelegateKeyword
, node.DelegateKeyword.Kind());
12785
Assert.Equal(SyntaxKind.
DelegateKeyword
, node.DelegateKeyword.Kind());
Parsing\AnonymousFunctionParsingTests.cs (15)
87
N(SyntaxKind.
DelegateKeyword
);
187
N(SyntaxKind.
DelegateKeyword
);
285
N(SyntaxKind.
DelegateKeyword
);
386
N(SyntaxKind.
DelegateKeyword
);
487
N(SyntaxKind.
DelegateKeyword
);
1126
N(SyntaxKind.
DelegateKeyword
);
1454
N(SyntaxKind.
DelegateKeyword
);
1772
N(SyntaxKind.
DelegateKeyword
);
1839
N(SyntaxKind.
DelegateKeyword
);
1933
N(SyntaxKind.
DelegateKeyword
);
2074
N(SyntaxKind.
DelegateKeyword
);
2152
N(SyntaxKind.
DelegateKeyword
);
2178
N(SyntaxKind.
DelegateKeyword
);
2238
N(SyntaxKind.
DelegateKeyword
);
2264
N(SyntaxKind.
DelegateKeyword
);
Parsing\AsyncParsingTests.cs (3)
1210
N(SyntaxKind.
DelegateKeyword
);
1371
N(SyntaxKind.
DelegateKeyword
);
1391
N(SyntaxKind.
DelegateKeyword
);
Parsing\AwaitParsingTests.cs (1)
1354
N(SyntaxKind.
DelegateKeyword
);
Parsing\DeclarationParsingTests.cs (2)
8378
N(SyntaxKind.
DelegateKeyword
);
8417
N(SyntaxKind.
DelegateKeyword
);
Parsing\DeclarationScopeParsingTests.cs (6)
9860
N(SyntaxKind.
DelegateKeyword
);
9912
N(SyntaxKind.
DelegateKeyword
);
11633
N(SyntaxKind.
DelegateKeyword
);
11698
N(SyntaxKind.
DelegateKeyword
);
11749
N(SyntaxKind.
DelegateKeyword
);
11818
N(SyntaxKind.
DelegateKeyword
);
Parsing\FileModifierParsingTests.cs (4)
599
N(SyntaxKind.
DelegateKeyword
);
756
N(SyntaxKind.
DelegateKeyword
);
1692
N(SyntaxKind.
DelegateKeyword
);
1952
N(SyntaxKind.
DelegateKeyword
);
Parsing\FunctionPointerTests.cs (80)
27
N(SyntaxKind.
DelegateKeyword
);
83
N(SyntaxKind.
DelegateKeyword
);
155
N(SyntaxKind.
DelegateKeyword
);
205
N(SyntaxKind.
DelegateKeyword
);
248
N(SyntaxKind.
DelegateKeyword
);
300
N(SyntaxKind.
DelegateKeyword
);
351
N(SyntaxKind.
DelegateKeyword
);
394
N(SyntaxKind.
DelegateKeyword
);
442
N(SyntaxKind.
DelegateKeyword
);
540
N(SyntaxKind.
DelegateKeyword
);
605
N(SyntaxKind.
DelegateKeyword
);
656
N(SyntaxKind.
DelegateKeyword
);
665
N(SyntaxKind.
DelegateKeyword
);
715
N(SyntaxKind.
DelegateKeyword
);
764
N(SyntaxKind.
DelegateKeyword
);
809
N(SyntaxKind.
DelegateKeyword
);
886
N(SyntaxKind.
DelegateKeyword
);
930
N(SyntaxKind.
DelegateKeyword
);
972
N(SyntaxKind.
DelegateKeyword
);
1017
N(SyntaxKind.
DelegateKeyword
);
1067
N(SyntaxKind.
DelegateKeyword
);
1121
N(SyntaxKind.
DelegateKeyword
);
1172
N(SyntaxKind.
DelegateKeyword
);
1226
N(SyntaxKind.
DelegateKeyword
);
1277
N(SyntaxKind.
DelegateKeyword
);
1352
N(SyntaxKind.
DelegateKeyword
);
1396
N(SyntaxKind.
DelegateKeyword
);
1444
N(SyntaxKind.
DelegateKeyword
);
1502
N(SyntaxKind.
DelegateKeyword
);
1566
N(SyntaxKind.
DelegateKeyword
);
1622
N(SyntaxKind.
DelegateKeyword
);
1669
N(SyntaxKind.
DelegateKeyword
);
1723
N(SyntaxKind.
DelegateKeyword
);
1754
N(SyntaxKind.
DelegateKeyword
);
1784
N(SyntaxKind.
DelegateKeyword
);
1838
N(SyntaxKind.
DelegateKeyword
);
1896
N(SyntaxKind.
DelegateKeyword
);
1950
N(SyntaxKind.
DelegateKeyword
);
1980
N(SyntaxKind.
DelegateKeyword
);
2035
N(SyntaxKind.
DelegateKeyword
);
2066
N(SyntaxKind.
DelegateKeyword
);
2111
N(SyntaxKind.
DelegateKeyword
);
2167
N(SyntaxKind.
DelegateKeyword
);
2221
N(SyntaxKind.
DelegateKeyword
);
2224
N(SyntaxKind.
DelegateKeyword
);
2260
N(SyntaxKind.
DelegateKeyword
);
2310
N(SyntaxKind.
DelegateKeyword
);
2380
N(SyntaxKind.
DelegateKeyword
);
2406
N(SyntaxKind.
DelegateKeyword
);
2439
N(SyntaxKind.
DelegateKeyword
);
2483
N(SyntaxKind.
DelegateKeyword
);
2517
N(SyntaxKind.
DelegateKeyword
);
2571
N(SyntaxKind.
DelegateKeyword
);
2605
N(SyntaxKind.
DelegateKeyword
);
2686
N(SyntaxKind.
DelegateKeyword
);
2719
N(SyntaxKind.
DelegateKeyword
);
2790
N(SyntaxKind.
DelegateKeyword
);
2847
N(SyntaxKind.
DelegateKeyword
);
2900
N(SyntaxKind.
DelegateKeyword
);
2952
N(SyntaxKind.
DelegateKeyword
);
2995
N(SyntaxKind.
DelegateKeyword
);
3045
N(SyntaxKind.
DelegateKeyword
);
3081
N(SyntaxKind.
DelegateKeyword
);
3141
N(SyntaxKind.
DelegateKeyword
);
3185
N(SyntaxKind.
DelegateKeyword
);
3236
N(SyntaxKind.
DelegateKeyword
);
3278
N(SyntaxKind.
DelegateKeyword
);
3317
N(SyntaxKind.
DelegateKeyword
);
3383
N(SyntaxKind.
DelegateKeyword
);
3456
N(SyntaxKind.
DelegateKeyword
);
3536
N(SyntaxKind.
DelegateKeyword
);
3608
N(SyntaxKind.
DelegateKeyword
);
3666
N(SyntaxKind.
DelegateKeyword
);
3710
N(SyntaxKind.
DelegateKeyword
);
3767
N(SyntaxKind.
DelegateKeyword
);
3827
N(SyntaxKind.
DelegateKeyword
);
3908
N(SyntaxKind.
DelegateKeyword
);
3996
N(SyntaxKind.
DelegateKeyword
);
4088
N(SyntaxKind.
DelegateKeyword
);
4146
N(SyntaxKind.
DelegateKeyword
);
Parsing\LambdaParameterParsingTests.cs (9)
2288
N(SyntaxKind.
DelegateKeyword
);
2692
N(SyntaxKind.
DelegateKeyword
);
2807
N(SyntaxKind.
DelegateKeyword
);
2900
N(SyntaxKind.
DelegateKeyword
);
2972
N(SyntaxKind.
DelegateKeyword
);
3050
N(SyntaxKind.
DelegateKeyword
);
3142
N(SyntaxKind.
DelegateKeyword
);
3263
N(SyntaxKind.
DelegateKeyword
);
3391
N(SyntaxKind.
DelegateKeyword
);
Parsing\LambdaReturnTypeParsingTests.cs (8)
300
N(SyntaxKind.
DelegateKeyword
);
330
N(SyntaxKind.
DelegateKeyword
);
561
N(SyntaxKind.
DelegateKeyword
);
600
N(SyntaxKind.
DelegateKeyword
);
623
N(SyntaxKind.
DelegateKeyword
);
1468
N(SyntaxKind.
DelegateKeyword
);
1515
N(SyntaxKind.
DelegateKeyword
);
5682
N(SyntaxKind.
DelegateKeyword
);
Parsing\MemberDeclarationParsingTests.cs (3)
1991
N(SyntaxKind.
DelegateKeyword
);
2190
N(SyntaxKind.
DelegateKeyword
);
9315
N(SyntaxKind.
DelegateKeyword
);
Parsing\PatternParsingTests.cs (1)
10357
N(SyntaxKind.
DelegateKeyword
);
Parsing\ScriptParsingTests.cs (4)
1427
N(SyntaxKind.
DelegateKeyword
);
1464
N(SyntaxKind.
DelegateKeyword
);
1500
N(SyntaxKind.
DelegateKeyword
);
2452
N(SyntaxKind.
DelegateKeyword
);
Parsing\StatementAttributeParsingTests.cs (3)
3305
N(SyntaxKind.
DelegateKeyword
);
3388
N(SyntaxKind.
DelegateKeyword
);
3468
N(SyntaxKind.
DelegateKeyword
);
Parsing\TopLevelStatementsParsingTests.cs (3)
1017
N(SyntaxKind.
DelegateKeyword
);
2477
N(SyntaxKind.
DelegateKeyword
);
2687
N(SyntaxKind.
DelegateKeyword
);
Parsing\UsingDirectiveParsingTests.cs (4)
123
N(SyntaxKind.
DelegateKeyword
);
427
N(SyntaxKind.
DelegateKeyword
);
745
N(SyntaxKind.
DelegateKeyword
);
805
N(SyntaxKind.
DelegateKeyword
);
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
CSharpSyntaxFacts.cs (1)
516
case SyntaxKind.
DelegateKeyword
:
CSharpSyntaxKinds.cs (1)
60
public int DelegateKeyword => (int)SyntaxKind.
DelegateKeyword
;
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
1146
if (token.IsKind(SyntaxKind.
DelegateKeyword
) &&
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (1)
101
case SyntaxKind.
DelegateKeyword
:
SemanticModelExtensions.cs (1)
154
case SyntaxKind.
DelegateKeyword
:
SpacingFormattingRule.cs (1)
367
if (currentKind == SyntaxKind.AsteriskToken && previousKind == SyntaxKind.
DelegateKeyword
)