20 references to IsPreprocessorDirective
Microsoft.CodeAnalysis.CSharp (6)
Compilation\CSharpSemanticModel.cs (1)
4852if (node.Ancestors().Any(n => SyntaxFacts.IsPreprocessorDirective(n.Kind())))
Syntax\SyntaxKindFacts.cs (1)
268return IsPreprocessorDirective(kind);
Syntax\SyntaxNormalizer.cs (4)
1171return !SyntaxFacts.IsPreprocessorDirective(trivia.Kind()); 1189return SyntaxFacts.IsPreprocessorDirective(kind); 1203return SyntaxFacts.IsPreprocessorDirective(kind); 1299if (SyntaxFacts.IsPreprocessorDirective(trivia.Kind()))
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
603var hasLeadingDirective = node.GetLeadingTrivia().Any(t => SyntaxFacts.IsPreprocessorDirective(t.Kind()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\CSharpTriviaFormatter.cs (1)
87if (SyntaxFacts.IsPreprocessorDirective(trivia2.Kind()))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.Analyzer.cs (1)
128Contract.ThrowIfFalse(SyntaxFacts.IsPreprocessorDirective(trivia.Kind()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.CodeShapeAnalyzer.cs (2)
67SyntaxFacts.IsPreprocessorDirective(trivia.Kind())) 248if (!SyntaxFacts.IsPreprocessorDirective(trivia.Kind()))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1370=> SyntaxFacts.IsPreprocessorDirective(trivia.Kind());
Microsoft.CodeAnalysis.CSharp.Features (1)
TaskList\CSharpTaskListService.cs (1)
86SyntaxFacts.IsPreprocessorDirective(trivia.Kind()) && trivia.ToString().IndexOf(SingleLineCommentPrefix, StringComparison.Ordinal) > 0;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
LexicalAndXml\PreprocessorTests.cs (1)
280Assert.True(SyntaxFacts.IsPreprocessorDirective(SyntaxKind.NullableDirectiveTrivia));
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
603var hasLeadingDirective = node.GetLeadingTrivia().Any(t => SyntaxFacts.IsPreprocessorDirective(t.Kind()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\CSharpTriviaFormatter.cs (1)
87if (SyntaxFacts.IsPreprocessorDirective(trivia2.Kind()))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.Analyzer.cs (1)
128Contract.ThrowIfFalse(SyntaxFacts.IsPreprocessorDirective(trivia.Kind()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.CodeShapeAnalyzer.cs (2)
67SyntaxFacts.IsPreprocessorDirective(trivia.Kind())) 248if (!SyntaxFacts.IsPreprocessorDirective(trivia.Kind()))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1370=> SyntaxFacts.IsPreprocessorDirective(trivia.Kind());