8 references to IsPreprocessorKeyword
Microsoft.CodeAnalysis.CSharp (3)
Syntax\SyntaxKindFacts.cs (2)
139
return
IsPreprocessorKeyword
(kind);
163
return IsPunctuation(kind) && !
IsPreprocessorKeyword
(kind) && !IsDebuggerSpecialPunctuation(kind);
Syntax\SyntaxNormalizer.cs (1)
1272
return SyntaxFacts.IsKeywordKind(kind) || SyntaxFacts.
IsPreprocessorKeyword
(kind);
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\StructuredTriviaFormattingRule.cs (1)
29
if (previousToken.Kind() == SyntaxKind.HashToken && SyntaxFacts.
IsPreprocessorKeyword
(currentToken.Kind()))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
114
=> SyntaxFacts.
IsPreprocessorKeyword
(token.Kind());
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
LexicalAndXml\PreprocessorTests.cs (1)
281
Assert.True(SyntaxFacts.
IsPreprocessorKeyword
(SyntaxKind.NullableKeyword));
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\StructuredTriviaFormattingRule.cs (1)
29
if (previousToken.Kind() == SyntaxKind.HashToken && SyntaxFacts.
IsPreprocessorKeyword
(currentToken.Kind()))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
114
=> SyntaxFacts.
IsPreprocessorKeyword
(token.Kind());