71 references to DelegateKeyword
Microsoft.CodeAnalysis.CSharp (44)
_generated\0\Syntax.xml.Main.Generated.cs (8)
2409
if (delegateKeyword.Kind() != SyntaxKind.
DelegateKeyword
) throw new ArgumentException(nameof(delegateKeyword));
2417
=> SyntaxFactory.FunctionPointerType(SyntaxFactory.Token(SyntaxKind.
DelegateKeyword
), SyntaxFactory.Token(SyntaxKind.AsteriskToken), callingConvention, parameterList);
2421
=> SyntaxFactory.FunctionPointerType(SyntaxFactory.Token(SyntaxKind.
DelegateKeyword
), SyntaxFactory.Token(SyntaxKind.AsteriskToken), default, SyntaxFactory.FunctionPointerParameterList());
3237
if (delegateKeyword.Kind() != SyntaxKind.
DelegateKeyword
) throw new ArgumentException(nameof(delegateKeyword));
5198
if (delegateKeyword.Kind() != SyntaxKind.
DelegateKeyword
) throw new ArgumentException(nameof(delegateKeyword));
5208
=> SyntaxFactory.DelegateDeclaration(attributeLists, modifiers, SyntaxFactory.Token(SyntaxKind.
DelegateKeyword
), returnType, identifier, typeParameterList, parameterList, constraintClauses, SyntaxFactory.Token(SyntaxKind.SemicolonToken));
5212
=> SyntaxFactory.DelegateDeclaration(default, default(SyntaxTokenList), SyntaxFactory.Token(SyntaxKind.
DelegateKeyword
), returnType, identifier, default, SyntaxFactory.ParameterList(), default, SyntaxFactory.Token(SyntaxKind.SemicolonToken));
5216
=> SyntaxFactory.DelegateDeclaration(default, default(SyntaxTokenList), SyntaxFactory.Token(SyntaxKind.
DelegateKeyword
), returnType, SyntaxFactory.Identifier(identifier), default, SyntaxFactory.ParameterList(), default, SyntaxFactory.Token(SyntaxKind.SemicolonToken));
_generated\1\Syntax.xml.Internal.Generated.cs (6)
28760
if (delegateKeyword.Kind != SyntaxKind.
DelegateKeyword
) throw new ArgumentException(nameof(delegateKeyword));
29843
if (delegateKeyword.Kind != SyntaxKind.
DelegateKeyword
) throw new ArgumentException(nameof(delegateKeyword));
32276
if (delegateKeyword.Kind != SyntaxKind.
DelegateKeyword
) throw new ArgumentException(nameof(delegateKeyword));
34187
if (delegateKeyword.Kind != SyntaxKind.
DelegateKeyword
) throw new ArgumentException(nameof(delegateKeyword));
35270
if (delegateKeyword.Kind != SyntaxKind.
DelegateKeyword
) throw new ArgumentException(nameof(delegateKeyword));
37703
if (delegateKeyword.Kind != SyntaxKind.
DelegateKeyword
) throw new ArgumentException(nameof(delegateKeyword));
Parser\LanguageParser.cs (23)
342
case SyntaxKind.
DelegateKeyword
:
988
var isAliasToFunctionPointer = alias != null && this.CurrentToken.Kind == SyntaxKind.
DelegateKeyword
;
1406
nextToken.Kind is SyntaxKind.EnumKeyword or SyntaxKind.
DelegateKeyword
||
1769
case SyntaxKind.
DelegateKeyword
:
2112
!(kind == SyntaxKind.
DelegateKeyword
&& this.PeekToken(1).Kind is SyntaxKind.OpenBraceToken or SyntaxKind.OpenParenToken))
2380
SyntaxKind.
DelegateKeyword
=>
2438
case SyntaxKind.
DelegateKeyword
:
2488
case SyntaxKind.
DelegateKeyword
when !IsFunctionPointerStart():
2662
case SyntaxKind.
DelegateKeyword
:
4918
case SyntaxKind.
DelegateKeyword
when IsFunctionPointerStart(): // Function pointer type
5878
Debug.Assert(this.CurrentToken.Kind == SyntaxKind.
DelegateKeyword
);
5880
var delegateToken = this.EatToken(SyntaxKind.
DelegateKeyword
);
7474
_ = EatToken(SyntaxKind.
DelegateKeyword
);
8066
var @delegate = EatToken(SyntaxKind.
DelegateKeyword
);
8224
=> CurrentToken.Kind == SyntaxKind.
DelegateKeyword
&& PeekToken(1).Kind == SyntaxKind.AsteriskToken;
8920
Debug.Assert(this.CurrentToken.Kind == SyntaxKind.
DelegateKeyword
);
11162
case SyntaxKind.
DelegateKeyword
:
11438
case SyntaxKind.
DelegateKeyword
:
12100
case SyntaxKind.
DelegateKeyword
:
12330
return this.PeekToken(tokenIndex).Kind == SyntaxKind.
DelegateKeyword
&&
13770
var @delegate = this.EatToken(SyntaxKind.
DelegateKeyword
);
13846
case SyntaxKind.
DelegateKeyword
:
13981
case SyntaxKind.
DelegateKeyword
:
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
585
AddKeyword(SyntaxKind.
DelegateKeyword
);
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
776
AddKeyword(SyntaxKind.
DelegateKeyword
);
Syntax\AnonymousMethodExpressionSyntax.cs (1)
44
Token(SyntaxKind.
DelegateKeyword
),
Syntax\SyntaxFactory.cs (1)
2819
? AnonymousMethodExpression(default(SyntaxTokenList), SyntaxFactory.Token(SyntaxKind.
DelegateKeyword
), parameterList, block, null)
Syntax\SyntaxKindFacts.cs (2)
1031
return SyntaxKind.
DelegateKeyword
;
1732
case SyntaxKind.
DelegateKeyword
:
Syntax\SyntaxNormalizer.cs (1)
758
if (next.IsKind(SyntaxKind.AsteriskToken) && token.IsKind(SyntaxKind.
DelegateKeyword
))
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
154
case SyntaxKind.
DelegateKeyword
:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
326
case SyntaxKind.
DelegateKeyword
:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
374
if (currentKind == SyntaxKind.AsteriskToken && previousKind == SyntaxKind.
DelegateKeyword
)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
511
case SyntaxKind.
DelegateKeyword
:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
70
public int DelegateKeyword => (int)SyntaxKind.
DelegateKeyword
;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\roslyn\src\Analyzers\CSharp\CodeFixes\FixIncorrectConstraint\CSharpFixIncorrectConstraintCodeFixProvider.cs (1)
60
return enumOrDelegateKeyword.Kind() is SyntaxKind.EnumKeyword or SyntaxKind.
DelegateKeyword
;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
1178
if (token.IsKind(SyntaxKind.
DelegateKeyword
) &&
3081
targetToken.GetPreviousToken().IsKind(SyntaxKind.
DelegateKeyword
);
Microsoft.CodeAnalysis.CSharp.Features (4)
Completion\KeywordRecommenders\DelegateKeywordRecommender.cs (1)
13
internal sealed class DelegateKeywordRecommender() : AbstractSyntacticSingleKeywordRecommender(SyntaxKind.
DelegateKeyword
)
QuickInfo\CSharpSemanticQuickInfoProvider.cs (1)
49
else if (token.IsKind(SyntaxKind.
DelegateKeyword
) && token.Parent.IsKind(SyntaxKind.AnonymousMethodExpression))
SignatureHelp\InvocationExpressionSignatureHelpProviderBase_DelegateAndFunctionPointerInvoke.cs (1)
66
displayParts.Add(Keyword(SyntaxKind.
DelegateKeyword
));
src\roslyn\src\Analyzers\CSharp\CodeFixes\FixIncorrectConstraint\CSharpFixIncorrectConstraintCodeFixProvider.cs (1)
60
return enumOrDelegateKeyword.Kind() is SyntaxKind.EnumKeyword or SyntaxKind.
DelegateKeyword
;
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
154
case SyntaxKind.
DelegateKeyword
:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
326
case SyntaxKind.
DelegateKeyword
:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
374
if (currentKind == SyntaxKind.AsteriskToken && previousKind == SyntaxKind.
DelegateKeyword
)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
511
case SyntaxKind.
DelegateKeyword
:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
70
public int DelegateKeyword => (int)SyntaxKind.
DelegateKeyword
;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
1178
if (token.IsKind(SyntaxKind.
DelegateKeyword
) &&
3081
targetToken.GetPreviousToken().IsKind(SyntaxKind.
DelegateKeyword
);
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\Legacy\NativeCSharpTokenizer.cs (1)
31
CSharpSyntaxKind.
DelegateKeyword
,
Roslyn.Diagnostics.CSharp.Analyzers (7)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
154
case SyntaxKind.
DelegateKeyword
:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
326
case SyntaxKind.
DelegateKeyword
:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
374
if (currentKind == SyntaxKind.AsteriskToken && previousKind == SyntaxKind.
DelegateKeyword
)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
511
case SyntaxKind.
DelegateKeyword
:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
70
public int DelegateKeyword => (int)SyntaxKind.
DelegateKeyword
;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
1178
if (token.IsKind(SyntaxKind.
DelegateKeyword
) &&
3081
targetToken.GetPreviousToken().IsKind(SyntaxKind.
DelegateKeyword
);