29 references to UndefDirectiveTrivia
Microsoft.CodeAnalysis.CSharp (9)
Parser\Directives.cs (4)
58case SyntaxKind.UndefDirectiveTrivia: 83case SyntaxKind.UndefDirectiveTrivia: 161case SyntaxKind.UndefDirectiveTrivia: 417case SyntaxKind.UndefDirectiveTrivia:
Syntax\CSharpSyntaxTree.cs (2)
245case SyntaxKind.UndefDirectiveTrivia: 280case SyntaxKind.UndefDirectiveTrivia:
Syntax\DirectiveTriviaSyntax.cs (1)
43case SyntaxKind.UndefDirectiveTrivia:
Syntax\SyntaxKindFacts.cs (1)
283case SyntaxKind.UndefDirectiveTrivia:
Syntax\SyntaxNodeRemover.cs (1)
445directive.Kind() == SyntaxKind.UndefDirectiveTrivia)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (18)
LexicalAndXml\PreprocessorTests.cs (16)
209case SyntaxKind.UndefDirectiveTrivia: 1783SyntaxKind.UndefDirectiveTrivia, SyntaxKind.UndefDirectiveTrivia, SyntaxKind.UndefDirectiveTrivia, 2561VerifyDirectivesSpecial(node, new DirectiveInfo { Kind = SyntaxKind.UndefDirectiveTrivia, Status = NodeStatus.IsActive, Text = defSym }); 2577VerifyDirectivesSpecial(node, new DirectiveInfo { Kind = SyntaxKind.UndefDirectiveTrivia, Status = NodeStatus.IsActive, Text = "XXX" }); 2590VerifyDirectivesSpecial(node, new DirectiveInfo { Kind = SyntaxKind.UndefDirectiveTrivia, Status = NodeStatus.IsActive, Text = "XXX" }); 2608new DirectiveInfo { Kind = SyntaxKind.UndefDirectiveTrivia, Status = NodeStatus.IsActive, Text = "XXX" }, 2746new DirectiveInfo { Kind = SyntaxKind.UndefDirectiveTrivia, Status = NodeStatus.IsNotActive, Text = "XXX" }, 2764new DirectiveInfo { Kind = SyntaxKind.UndefDirectiveTrivia, Status = NodeStatus.IsNotActive, Text = "ZZZ" }, 2784new DirectiveInfo { Kind = SyntaxKind.UndefDirectiveTrivia, Status = NodeStatus.IsActive, Text = defSym }, 2798VerifyDirectivesSpecial(node, new DirectiveInfo { Kind = SyntaxKind.UndefDirectiveTrivia, Status = NodeStatus.IsActive, Text = string.Empty }); 2809VerifyDirectivesSpecial(node, new DirectiveInfo { Kind = SyntaxKind.UndefDirectiveTrivia, Status = NodeStatus.IsActive, Text = string.Empty }); 2820VerifyDirectivesSpecial(node, new DirectiveInfo { Kind = SyntaxKind.UndefDirectiveTrivia, Status = NodeStatus.IsActive, Text = "GOO" }); 2844VerifyDirectivesSpecial(node, new DirectiveInfo { Kind = SyntaxKind.UndefDirectiveTrivia, Status = NodeStatus.IsActive, Text = "" }); 2870new DirectiveInfo { Kind = SyntaxKind.UndefDirectiveTrivia, Status = NodeStatus.IsActive, Text = "error" },
Syntax\SyntaxNodeTests.cs (2)
386testContainsHelper1("#undef x", SyntaxKind.UndefDirectiveTrivia); 1392Assert.Equal(SyntaxKind.UndefDirectiveTrivia, d.Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Classification\Worker.cs (1)
243case SyntaxKind.UndefDirectiveTrivia:
Classification\Worker_Preprocesser.cs (1)
51case SyntaxKind.UndefDirectiveTrivia: