32 references to UndefDirectiveTrivia
Microsoft.CodeAnalysis.CSharp (9)
Parser\Directives.cs (4)
58
case SyntaxKind.
UndefDirectiveTrivia
:
83
case SyntaxKind.
UndefDirectiveTrivia
:
161
case SyntaxKind.
UndefDirectiveTrivia
:
417
case SyntaxKind.
UndefDirectiveTrivia
:
Syntax\CSharpSyntaxTree.cs (2)
245
case SyntaxKind.
UndefDirectiveTrivia
:
280
case SyntaxKind.
UndefDirectiveTrivia
:
Syntax\DirectiveTriviaSyntax.cs (1)
43
case SyntaxKind.
UndefDirectiveTrivia
:
Syntax\SyntaxKindFacts.cs (1)
283
case SyntaxKind.
UndefDirectiveTrivia
:
Syntax\SyntaxNodeRemover.cs (1)
445
directive.Kind() == SyntaxKind.
UndefDirectiveTrivia
)
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
415
SyntaxKind.
UndefDirectiveTrivia
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
43
public int? UndefDirectiveTrivia => (int)SyntaxKind.
UndefDirectiveTrivia
;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (17)
LexicalAndXml\PreprocessorTests.cs (15)
209
case SyntaxKind.
UndefDirectiveTrivia
:
1783
SyntaxKind.
UndefDirectiveTrivia
, SyntaxKind.
UndefDirectiveTrivia
, SyntaxKind.
UndefDirectiveTrivia
,
2561
VerifyDirectivesSpecial(node, new DirectiveInfo { Kind = SyntaxKind.
UndefDirectiveTrivia
, Status = NodeStatus.IsActive, Text = defSym });
2577
VerifyDirectivesSpecial(node, new DirectiveInfo { Kind = SyntaxKind.
UndefDirectiveTrivia
, Status = NodeStatus.IsActive, Text = "XXX" });
2608
new DirectiveInfo { Kind = SyntaxKind.
UndefDirectiveTrivia
, Status = NodeStatus.IsActive, Text = "XXX" },
2746
new DirectiveInfo { Kind = SyntaxKind.
UndefDirectiveTrivia
, Status = NodeStatus.IsNotActive, Text = "XXX" },
2764
new DirectiveInfo { Kind = SyntaxKind.
UndefDirectiveTrivia
, Status = NodeStatus.IsNotActive, Text = "ZZZ" },
2784
new DirectiveInfo { Kind = SyntaxKind.
UndefDirectiveTrivia
, Status = NodeStatus.IsActive, Text = defSym },
2798
VerifyDirectivesSpecial(node, new DirectiveInfo { Kind = SyntaxKind.
UndefDirectiveTrivia
, Status = NodeStatus.IsActive, Text = string.Empty });
2809
VerifyDirectivesSpecial(node, new DirectiveInfo { Kind = SyntaxKind.
UndefDirectiveTrivia
, Status = NodeStatus.IsActive, Text = string.Empty });
2820
VerifyDirectivesSpecial(node, new DirectiveInfo { Kind = SyntaxKind.
UndefDirectiveTrivia
, Status = NodeStatus.IsActive, Text = "GOO" });
2844
VerifyDirectivesSpecial(node, new DirectiveInfo { Kind = SyntaxKind.
UndefDirectiveTrivia
, Status = NodeStatus.IsActive, Text = "" });
2870
new DirectiveInfo { Kind = SyntaxKind.
UndefDirectiveTrivia
, Status = NodeStatus.IsActive, Text = "error" },
Syntax\SyntaxNodeTests.cs (2)
383
testContainsHelper1("#undef x", SyntaxKind.
UndefDirectiveTrivia
);
1415
Assert.Equal(SyntaxKind.
UndefDirectiveTrivia
, d.Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
Classification\Worker.cs (1)
243
case SyntaxKind.
UndefDirectiveTrivia
:
Classification\Worker_Preprocesser.cs (1)
51
case SyntaxKind.
UndefDirectiveTrivia
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
415
SyntaxKind.
UndefDirectiveTrivia
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
43
public int? UndefDirectiveTrivia => (int)SyntaxKind.
UndefDirectiveTrivia
;