14 references to AllowsKeyword
Microsoft.CodeAnalysis.CSharp (11)
_generated\0\Syntax.xml.Main.Generated.cs (2)
5387
if (allowsKeyword.Kind() != SyntaxKind.
AllowsKeyword
) throw new ArgumentException(nameof(allowsKeyword));
5393
=> SyntaxFactory.AllowsConstraintClause(SyntaxFactory.Token(SyntaxKind.
AllowsKeyword
), constraints);
_generated\1\Syntax.xml.Internal.Generated.cs (2)
32514
if (allowsKeyword.Kind != SyntaxKind.
AllowsKeyword
) throw new ArgumentException(nameof(allowsKeyword));
37941
if (allowsKeyword.Kind != SyntaxKind.
AllowsKeyword
) throw new ArgumentException(nameof(allowsKeyword));
Parser\LanguageParser.cs (3)
2340
return (this.CurrentToken.ContextualKind == SyntaxKind.
AllowsKeyword
&& PeekToken(1).Kind == SyntaxKind.RefKeyword) || this.IsTrueIdentifier();
2392
if (this.CurrentToken.ContextualKind == SyntaxKind.
AllowsKeyword
&&
2395
var allows = this.EatContextualToken(SyntaxKind.
AllowsKeyword
);
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
988
AddKeyword(SyntaxKind.
AllowsKeyword
);
Syntax\SyntaxKindFacts.cs (3)
1301
case SyntaxKind.
AllowsKeyword
:
1432
return SyntaxKind.
AllowsKeyword
;
1886
case SyntaxKind.
AllowsKeyword
:
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\KeywordRecommenders\AllowsKeywordRecommender.cs (1)
12
internal sealed class AllowsKeywordRecommender() : AbstractSyntacticSingleKeywordRecommender(SyntaxKind.
AllowsKeyword
)
Completion\KeywordRecommenders\RefKeywordRecommender.cs (1)
147
if (token.Kind() == SyntaxKind.IdentifierToken && SyntaxFacts.GetContextualKeywordKind((string)token.Value!) == SyntaxKind.
AllowsKeyword
&&
SignatureHelp\AbstractGenericNameSignatureHelpProvider.cs (1)
271
parts.Add(Keyword(SyntaxKind.
AllowsKeyword
));