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