71 references to DelegateKeyword
Microsoft.CodeAnalysis.CSharp (44)
_generated\0\Syntax.xml.Main.Generated.cs (8)
2416
if (delegateKeyword.Kind() != SyntaxKind.
DelegateKeyword
) throw new ArgumentException(nameof(delegateKeyword));
2424
=> SyntaxFactory.FunctionPointerType(SyntaxFactory.Token(SyntaxKind.
DelegateKeyword
), SyntaxFactory.Token(SyntaxKind.AsteriskToken), callingConvention, parameterList);
2428
=> SyntaxFactory.FunctionPointerType(SyntaxFactory.Token(SyntaxKind.
DelegateKeyword
), SyntaxFactory.Token(SyntaxKind.AsteriskToken), default, SyntaxFactory.FunctionPointerParameterList());
3260
if (delegateKeyword.Kind() != SyntaxKind.
DelegateKeyword
) throw new ArgumentException(nameof(delegateKeyword));
5222
if (delegateKeyword.Kind() != SyntaxKind.
DelegateKeyword
) throw new ArgumentException(nameof(delegateKeyword));
5232
=> SyntaxFactory.DelegateDeclaration(attributeLists, modifiers, SyntaxFactory.Token(SyntaxKind.
DelegateKeyword
), returnType, identifier, typeParameterList, parameterList, constraintClauses, SyntaxFactory.Token(SyntaxKind.SemicolonToken));
5236
=> SyntaxFactory.DelegateDeclaration(default, default(SyntaxTokenList), SyntaxFactory.Token(SyntaxKind.
DelegateKeyword
), returnType, identifier, default, SyntaxFactory.ParameterList(), default, SyntaxFactory.Token(SyntaxKind.SemicolonToken));
5240
=> 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)
28900
if (delegateKeyword.Kind != SyntaxKind.
DelegateKeyword
) throw new ArgumentException(nameof(delegateKeyword));
29998
if (delegateKeyword.Kind != SyntaxKind.
DelegateKeyword
) throw new ArgumentException(nameof(delegateKeyword));
32411
if (delegateKeyword.Kind != SyntaxKind.
DelegateKeyword
) throw new ArgumentException(nameof(delegateKeyword));
34322
if (delegateKeyword.Kind != SyntaxKind.
DelegateKeyword
) throw new ArgumentException(nameof(delegateKeyword));
35420
if (delegateKeyword.Kind != SyntaxKind.
DelegateKeyword
) throw new ArgumentException(nameof(delegateKeyword));
37833
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
||
1785
case SyntaxKind.
DelegateKeyword
:
2128
!(kind == SyntaxKind.
DelegateKeyword
&& this.PeekToken(1).Kind is SyntaxKind.OpenBraceToken or SyntaxKind.OpenParenToken))
2391
SyntaxKind.
DelegateKeyword
=>
2449
case SyntaxKind.
DelegateKeyword
:
2499
case SyntaxKind.
DelegateKeyword
when !IsFunctionPointerStart():
2662
case SyntaxKind.
DelegateKeyword
:
4892
case SyntaxKind.
DelegateKeyword
when IsFunctionPointerStart(): // Function pointer type
5848
Debug.Assert(this.CurrentToken.Kind == SyntaxKind.
DelegateKeyword
);
5850
var delegateToken = this.EatToken(SyntaxKind.
DelegateKeyword
);
7439
_ = EatToken(SyntaxKind.
DelegateKeyword
);
8031
var @delegate = EatToken(SyntaxKind.
DelegateKeyword
);
8189
=> CurrentToken.Kind == SyntaxKind.
DelegateKeyword
&& PeekToken(1).Kind == SyntaxKind.AsteriskToken;
8901
Debug.Assert(this.CurrentToken.Kind == SyntaxKind.
DelegateKeyword
);
11146
case SyntaxKind.
DelegateKeyword
:
11423
case SyntaxKind.
DelegateKeyword
:
12087
case SyntaxKind.
DelegateKeyword
:
12317
return this.PeekToken(tokenIndex).Kind == SyntaxKind.
DelegateKeyword
&&
13766
var @delegate = this.EatToken(SyntaxKind.
DelegateKeyword
);
13842
case SyntaxKind.
DelegateKeyword
:
13977
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)
1033
return SyntaxKind.
DelegateKeyword
;
1734
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
) &&
3074
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
) &&
3074
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
) &&
3074
targetToken.GetPreviousToken().IsKind(SyntaxKind.
DelegateKeyword
);