64 references to DelegateKeyword
Microsoft.CodeAnalysis.CSharp (37)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Syntax.xml.Main.Generated.cs (8)
2416if (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()); 3260if (delegateKeyword.Kind() != SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword)); 5222if (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));
Parser\LanguageParser.cs (22)
342case SyntaxKind.DelegateKeyword: 972var isAliasToFunctionPointer = alias != null && this.CurrentToken.Kind == SyntaxKind.DelegateKeyword; 1774case SyntaxKind.DelegateKeyword: 2117!(kind == SyntaxKind.DelegateKeyword && this.PeekToken(1).Kind is SyntaxKind.OpenBraceToken or SyntaxKind.OpenParenToken)) 2380SyntaxKind.DelegateKeyword => 2438case SyntaxKind.DelegateKeyword: 2488case SyntaxKind.DelegateKeyword when !IsFunctionPointerStart(): 2651case SyntaxKind.DelegateKeyword: 4881case SyntaxKind.DelegateKeyword when IsFunctionPointerStart(): // Function pointer type 5837Debug.Assert(this.CurrentToken.Kind == SyntaxKind.DelegateKeyword); 5839var delegateToken = this.EatToken(SyntaxKind.DelegateKeyword); 7415_ = EatToken(SyntaxKind.DelegateKeyword); 8007var @delegate = EatToken(SyntaxKind.DelegateKeyword); 8165=> CurrentToken.Kind == SyntaxKind.DelegateKeyword && PeekToken(1).Kind == SyntaxKind.AsteriskToken; 8877Debug.Assert(this.CurrentToken.Kind == SyntaxKind.DelegateKeyword); 11122case SyntaxKind.DelegateKeyword: 11399case SyntaxKind.DelegateKeyword: 12063case SyntaxKind.DelegateKeyword: 12293return this.PeekToken(tokenIndex).Kind == SyntaxKind.DelegateKeyword && 13745var @delegate = this.EatToken(SyntaxKind.DelegateKeyword); 13864case SyntaxKind.DelegateKeyword: 13999case 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)
1033return SyntaxKind.DelegateKeyword; 1734case 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) && 3074targetToken.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) && 3074targetToken.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) && 3074targetToken.GetPreviousToken().IsKind(SyntaxKind.DelegateKeyword);