44 references to AllowsKeyword
Microsoft.CodeAnalysis.CSharp (8)
Parser\LanguageParser.cs (3)
2230
return (this.CurrentToken.ContextualKind == SyntaxKind.
AllowsKeyword
&& PeekToken(1).Kind == SyntaxKind.RefKeyword) || this.IsTrueIdentifier();
2282
if (this.CurrentToken.ContextualKind == SyntaxKind.
AllowsKeyword
&&
2285
var allows = this.EatContextualToken(SyntaxKind.
AllowsKeyword
);
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
943
AddKeyword(SyntaxKind.
AllowsKeyword
);
Syntax\SyntaxKindFacts.cs (4)
1169
for (int i = (int)SyntaxKind.YieldKeyword; i <= (int)SyntaxKind.
AllowsKeyword
; i++)
1230
case SyntaxKind.
AllowsKeyword
:
1357
return SyntaxKind.
AllowsKeyword
;
1803
case SyntaxKind.
AllowsKeyword
:
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\KeywordRecommenders\AllowsKeywordRecommender.cs (1)
15
: base(SyntaxKind.
AllowsKeyword
)
Completion\KeywordRecommenders\RefKeywordRecommender.cs (1)
105
if (token.Kind() == SyntaxKind.IdentifierToken && SyntaxFacts.GetContextualKeywordKind((string)token.Value!) == SyntaxKind.
AllowsKeyword
&&
SignatureHelp\GenericNameSignatureHelpProvider.cs (1)
298
parts.Add(Keyword(SyntaxKind.
AllowsKeyword
));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (33)
Generated\Syntax.Test.xml.Generated.cs (4)
548
=> InternalSyntaxFactory.AllowsConstraintClause(InternalSyntaxFactory.Token(SyntaxKind.
AllowsKeyword
), new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList<Syntax.InternalSyntax.AllowsConstraintSyntax>());
2987
Assert.Equal(SyntaxKind.
AllowsKeyword
, node.AllowsKeyword.Kind);
10764
=> SyntaxFactory.AllowsConstraintClause(SyntaxFactory.Token(SyntaxKind.
AllowsKeyword
), new SeparatedSyntaxList<AllowsConstraintSyntax>());
13203
Assert.Equal(SyntaxKind.
AllowsKeyword
, node.AllowsKeyword.Kind());
Parsing\AllowsConstraintParsing.cs (29)
56
N(SyntaxKind.
AllowsKeyword
);
165
N(SyntaxKind.
AllowsKeyword
);
394
N(SyntaxKind.
AllowsKeyword
);
451
N(SyntaxKind.
AllowsKeyword
);
506
N(SyntaxKind.
AllowsKeyword
);
564
N(SyntaxKind.
AllowsKeyword
);
619
N(SyntaxKind.
AllowsKeyword
);
629
N(SyntaxKind.
AllowsKeyword
);
682
N(SyntaxKind.
AllowsKeyword
);
740
N(SyntaxKind.
AllowsKeyword
);
798
N(SyntaxKind.
AllowsKeyword
);
874
N(SyntaxKind.
AllowsKeyword
);
941
N(SyntaxKind.
AllowsKeyword
);
1013
N(SyntaxKind.
AllowsKeyword
);
1080
N(SyntaxKind.
AllowsKeyword
);
1138
N(SyntaxKind.
AllowsKeyword
);
1192
N(SyntaxKind.
AllowsKeyword
);
1246
N(SyntaxKind.
AllowsKeyword
);
1303
N(SyntaxKind.
AllowsKeyword
);
1360
N(SyntaxKind.
AllowsKeyword
);
1417
N(SyntaxKind.
AllowsKeyword
);
1473
N(SyntaxKind.
AllowsKeyword
);
1542
N(SyntaxKind.
AllowsKeyword
);
1591
N(SyntaxKind.
AllowsKeyword
);
1645
N(SyntaxKind.
AllowsKeyword
);
1699
N(SyntaxKind.
AllowsKeyword
);
1756
N(SyntaxKind.
AllowsKeyword
);
1813
N(SyntaxKind.
AllowsKeyword
);
1870
N(SyntaxKind.
AllowsKeyword
);