23 references to PreprocessingMessageTrivia
Microsoft.CodeAnalysis.CSharp (3)
Syntax\InternalSyntax\SyntaxFactory.cs (1)
113return SyntaxTrivia.Create(SyntaxKind.PreprocessingMessageTrivia, text);
Syntax\InternalSyntax\SyntaxTrivia.cs (1)
18if (kind == SyntaxKind.PreprocessingMessageTrivia)
Syntax\SyntaxNormalizer.cs (1)
1234if (trivia.Kind() == SyntaxKind.PreprocessingMessageTrivia || trivia.Kind() == SyntaxKind.DisabledTextTrivia)
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.Analyzer.cs (1)
118SyntaxKind.PreprocessingMessageTrivia)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.CodeShapeAnalyzer.cs (3)
40Contract.ThrowIfTrue(trivia.Kind() == SyntaxKind.PreprocessingMessageTrivia); 81SyntaxKind.PreprocessingMessageTrivia) 216not SyntaxKind.PreprocessingMessageTrivia)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (11)
LexicalAndXml\PreprocessorTests.cs (10)
2106Assert.Equal(SyntaxKind.PreprocessingMessageTrivia, regionText.Kind()); 2128Assert.Equal(SyntaxKind.PreprocessingMessageTrivia, regionText.Kind()); 2216Assert.Equal(SyntaxKind.PreprocessingMessageTrivia, regionText.Kind()); 2237Assert.Equal(SyntaxKind.PreprocessingMessageTrivia, regionText.Kind()); 2258Assert.Equal(SyntaxKind.PreprocessingMessageTrivia, regionText.Kind()); 2279Assert.Equal(SyntaxKind.PreprocessingMessageTrivia, regionText.Kind()); 2300Assert.Equal(SyntaxKind.PreprocessingMessageTrivia, regionText.Kind()); 2321Assert.Equal(SyntaxKind.PreprocessingMessageTrivia, regionText.Kind()); 2342Assert.Equal(SyntaxKind.PreprocessingMessageTrivia, regionText.Kind()); 2363Assert.Equal(SyntaxKind.PreprocessingMessageTrivia, regionText.Kind());
Parsing\ScriptParsingTests.cs (1)
9741Assert.Equal(SyntaxKind.PreprocessingMessageTrivia, skippedText.Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.Analyzer.cs (1)
118SyntaxKind.PreprocessingMessageTrivia)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.CodeShapeAnalyzer.cs (3)
40Contract.ThrowIfTrue(trivia.Kind() == SyntaxKind.PreprocessingMessageTrivia); 81SyntaxKind.PreprocessingMessageTrivia) 216not SyntaxKind.PreprocessingMessageTrivia)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
LanguageService\CSharpHelpContextService.cs (1)
65if (trivia.Span.IntersectsWith(span) && trivia.Kind() == SyntaxKind.PreprocessingMessageTrivia &&