21 references to GetKeywordKind
Microsoft.CodeAnalysis.CSharp (2)
SymbolDisplay\SymbolDisplayVisitor.cs (1)
141SyntaxKind kind = SyntaxFacts.GetKeywordKind(identifier);
Symbols\Source\AttributeLocation.cs (1)
111var kind = SyntaxFacts.GetKeywordKind(token.ValueText);
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Analyzers\CSharp\Analyzers\OrderModifiers\CSharpOrderModifiersHelper.cs (1)
21var kind = SyntaxFacts.GetKeywordKind(trimmed);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SymbolDisplayPartExtensions.cs (1)
21if (SyntaxFacts.GetKeywordKind(text) != SyntaxKind.None)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
89var needsEscaping = SyntaxFacts.GetKeywordKind(identifier) != SyntaxKind.None;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\StringExtensions.cs (1)
23var needsEscaping = SyntaxFacts.GetKeywordKind(identifier) != SyntaxKind.None;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\CSharpSimplificationHelpers.cs (1)
23if (SyntaxFacts.GetKeywordKind(syntaxToken.ValueText) == SyntaxKind.None && SyntaxFacts.GetContextualKeywordKind(syntaxToken.ValueText) == SyntaxKind.None)
Microsoft.CodeAnalysis.CSharp.Features (4)
AddImport\CSharpAddImportFeatureService.cs (1)
404if (SyntaxFacts.GetKeywordKind(part) != SyntaxKind.None)
InlineHints\CSharpInlineParameterNameHintsService.cs (1)
102var keywordKind = SyntaxFacts.GetKeywordKind(parameterName);
ReplaceDocCommentTextWithTag\CSharpReplaceDocCommentTextWithTagCodeRefactoringProvider.cs (1)
30=> SyntaxFacts.IsKeywordKind(SyntaxFacts.GetKeywordKind(text)) || SyntaxFacts.IsContextualKeyword(SyntaxFacts.GetContextualKeywordKind(text));
src\Analyzers\CSharp\Analyzers\OrderModifiers\CSharpOrderModifiersHelper.cs (1)
21var kind = SyntaxFacts.GetKeywordKind(trimmed);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Parsing\ParsingErrorRecoveryTests.cs (1)
88var accessibilityKind = SyntaxFacts.GetKeywordKind(accessibility);
Microsoft.CodeAnalysis.CSharp.Workspaces (8)
Rename\CSharpRenameRewriterLanguageService.cs (1)
1123var kind = SyntaxFacts.GetKeywordKind(replacementText);
Simplification\CSharpSimplificationService.cs (1)
104if (SyntaxFacts.GetKeywordKind(syntaxToken.ValueText) == SyntaxKind.None && SyntaxFacts.GetContextualKeywordKind(syntaxToken.ValueText) == SyntaxKind.None)
Simplification\Reducers\CSharpEscapingReducer.cs (1)
43if (SyntaxFacts.GetKeywordKind(unescapedIdentifier) != SyntaxKind.None && enclosingXmlNameAttr == null)
Simplification\Simplifiers\NameSimplifier.cs (1)
506if (SyntaxFacts.GetKeywordKind(newAttributeName) != SyntaxKind.None)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SymbolDisplayPartExtensions.cs (1)
21if (SyntaxFacts.GetKeywordKind(text) != SyntaxKind.None)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
89var needsEscaping = SyntaxFacts.GetKeywordKind(identifier) != SyntaxKind.None;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\StringExtensions.cs (1)
23var needsEscaping = SyntaxFacts.GetKeywordKind(identifier) != SyntaxKind.None;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\CSharpSimplificationHelpers.cs (1)
23if (SyntaxFacts.GetKeywordKind(syntaxToken.ValueText) == SyntaxKind.None && SyntaxFacts.GetContextualKeywordKind(syntaxToken.ValueText) == SyntaxKind.None)
System.Text.Json.SourceGeneration (1)
Helpers\RoslynExtensions.cs (1)
227=> SyntaxFacts.GetKeywordKind(symbol.Name) != SyntaxKind.None || SyntaxFacts.GetContextualKeywordKind(symbol.Name) != SyntaxKind.None;