11 references to IsKeywordKind
Microsoft.CodeAnalysis.CSharp (3)
CSharpExtensions.cs (1)
224
return SyntaxFacts.
IsKeywordKind
(token.Kind());
Parser\LanguageParser.cs (1)
51
return kind == SyntaxKind.IdentifierToken || SyntaxFacts.
IsKeywordKind
(kind);
Syntax\SyntaxNormalizer.cs (1)
1272
return SyntaxFacts.
IsKeywordKind
(kind) || SyntaxFacts.IsPreprocessorKeyword(kind);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
330
if (SyntaxFacts.
IsKeywordKind
(token.Kind()))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
149
if (SyntaxFacts.
IsKeywordKind
(token.Kind()))
Microsoft.CodeAnalysis.CSharp.Features (1)
ReplaceDocCommentTextWithTag\CSharpReplaceDocCommentTextWithTagCodeRefactoringProvider.cs (1)
30
=> SyntaxFacts.
IsKeywordKind
(SyntaxFacts.GetKeywordKind(text)) || SyntaxFacts.IsContextualKeyword(SyntaxFacts.GetContextualKeywordKind(text));
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Classification\ClassificationHelpers.cs (2)
34
else if (SyntaxFacts.
IsKeywordKind
(token.Kind()) || token.IsKind(SyntaxKind.DiscardDesignation))
542
var isKeyword = SyntaxFacts.
IsKeywordKind
(token.Kind())
Simplification\Simplifiers\MemberAccessExpressionSimplifier.cs (1)
75
(CSharp.SyntaxFacts.
IsKeywordKind
(nextToken.Kind()) && nextToken.Kind() is not SyntaxKind.AsKeyword and not SyntaxKind.IsKeyword))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
330
if (SyntaxFacts.
IsKeywordKind
(token.Kind()))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
149
if (SyntaxFacts.
IsKeywordKind
(token.Kind()))