12 references to IsContextualKeyword
Microsoft.CodeAnalysis.CSharp (7)
CSharpExtensions.cs (1)
229return SyntaxFacts.IsContextualKeyword(token.Kind());
Parser\Blender.Reader.cs (1)
310return SyntaxFacts.IsContextualKeyword(kind);
Parser\LanguageParser.cs (2)
1609return !SyntaxFacts.IsContextualKeyword(nextToken.ContextualKind) && GetModifierExcludingScoped(nextToken) != DeclarationModifiers.None; 5689if (!SyntaxFacts.IsContextualKeyword(((CSharp.Syntax.IdentifierNameSyntax)this.CurrentNode).Identifier.Kind()))
Parser\Lexer.cs (2)
1866else if (SyntaxFacts.IsContextualKeyword(info.Kind)) 3826if (SyntaxFacts.IsContextualKeyword(keywordKind))
Syntax\SyntaxKindFacts.cs (1)
15return IsReservedKeyword(kind) || IsContextualKeyword(kind);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
111=> SyntaxFacts.IsContextualKeyword(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.Syntax.UnitTests (2)
Parsing\FunctionPointerTests.cs (2)
4066Assert.True(CSharp.SyntaxFacts.IsContextualKeyword(SyntaxKind.ManagedKeyword)); 4067Assert.True(CSharp.SyntaxFacts.IsContextualKeyword(SyntaxKind.UnmanagedKeyword));
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
111=> SyntaxFacts.IsContextualKeyword(token.Kind());