39 references to DisabledTextTrivia
Microsoft.CodeAnalysis.CSharp (5)
Syntax\InternalSyntax\SyntaxFactory.cs (1)
108return SyntaxTrivia.Create(SyntaxKind.DisabledTextTrivia, text);
Syntax\SyntaxFactory.cs (2)
186/// <see cref="SyntaxKind.DocumentationCommentExteriorTrivia"/>, <see cref="SyntaxKind.DisabledTextTrivia"/> 200case SyntaxKind.DisabledTextTrivia:
Syntax\SyntaxKindFacts.cs (1)
263case SyntaxKind.DisabledTextTrivia:
Syntax\SyntaxNormalizer.cs (1)
1234if (trivia.Kind() == SyntaxKind.PreprocessingMessageTrivia || trivia.Kind() == SyntaxKind.DisabledTextTrivia)
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\BlockSyntaxExtensions.cs (1)
91if (nextTrivia.Kind() == SyntaxKind.DisabledTextTrivia)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
497if (trivia.Kind() == SyntaxKind.DisabledTextTrivia)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\CSharpTriviaFormatter.cs (1)
111if (previous.IsKind(SyntaxKind.DisabledTextTrivia))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.Analyzer.cs (1)
117else if (trivia.Kind() is SyntaxKind.DisabledTextTrivia or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.CodeShapeAnalyzer.cs (1)
311if (trivia.IsKind(SyntaxKind.DisabledTextTrivia))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1106if (trivia.Kind() == SyntaxKind.DisabledTextTrivia)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
26public int DisabledTextTrivia => (int)SyntaxKind.DisabledTextTrivia;
Microsoft.CodeAnalysis.CSharp.Features (1)
Structure\CSharpBlockStructureProvider.cs (1)
64builder.Add((int)SyntaxKind.DisabledTextTrivia, [new DisabledTextTriviaStructureProvider()]);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (18)
LexicalAndXml\LexicalTests.cs (18)
547Assert.Equal(SyntaxKind.DisabledTextTrivia, trivia[1].Kind()); 3984Assert.True(trivia.Kind() == SyntaxKind.DisabledTextTrivia); 4007Assert.True(trivia.Kind() == SyntaxKind.DisabledTextTrivia); 4029Assert.True(trivia3.Kind() == SyntaxKind.DisabledTextTrivia); 4113Assert.True(trivia.Kind() == SyntaxKind.DisabledTextTrivia); 4131Assert.True(trivia.Kind() == SyntaxKind.DisabledTextTrivia); 4148Assert.True(trivia3.Kind() == SyntaxKind.DisabledTextTrivia); 4183Assert.True(trivia.Kind() == SyntaxKind.DisabledTextTrivia); 4223Assert.True(trivia.Kind() == SyntaxKind.DisabledTextTrivia); 4288Assert.True(trivia.Kind() == SyntaxKind.DisabledTextTrivia); 4311Assert.True(trivia.Kind() == SyntaxKind.DisabledTextTrivia); 4333Assert.True(trivia3.Kind() == SyntaxKind.DisabledTextTrivia); 4431Assert.True(trivia.Kind() == SyntaxKind.DisabledTextTrivia); 4447Assert.True(trivia.Kind() == SyntaxKind.DisabledTextTrivia); 4487Assert.True(trivia.Kind() == SyntaxKind.DisabledTextTrivia); 4503Assert.True(trivia.Kind() == SyntaxKind.DisabledTextTrivia); 4545Assert.True(trivia.Kind() == SyntaxKind.DisabledTextTrivia); 4563Assert.True(trivia.Kind() == SyntaxKind.DisabledTextTrivia);
Microsoft.CodeAnalysis.CSharp.Workspaces (8)
Classification\Worker.cs (1)
215case SyntaxKind.DisabledTextTrivia:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\BlockSyntaxExtensions.cs (1)
91if (nextTrivia.Kind() == SyntaxKind.DisabledTextTrivia)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
497if (trivia.Kind() == SyntaxKind.DisabledTextTrivia)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\CSharpTriviaFormatter.cs (1)
111if (previous.IsKind(SyntaxKind.DisabledTextTrivia))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.Analyzer.cs (1)
117else if (trivia.Kind() is SyntaxKind.DisabledTextTrivia or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.CodeShapeAnalyzer.cs (1)
311if (trivia.IsKind(SyntaxKind.DisabledTextTrivia))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1106if (trivia.Kind() == SyntaxKind.DisabledTextTrivia)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
26public int DisabledTextTrivia => (int)SyntaxKind.DisabledTextTrivia;