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