32 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.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
415SyntaxKind.UndefDirectiveTrivia);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
43public int? UndefDirectiveTrivia => (int)SyntaxKind.UndefDirectiveTrivia;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (17)
LexicalAndXml\PreprocessorTests.cs (15)
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" }); 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)
383testContainsHelper1("#undef x", SyntaxKind.UndefDirectiveTrivia); 1415Assert.Equal(SyntaxKind.UndefDirectiveTrivia, d.Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
Classification\Worker.cs (1)
243case SyntaxKind.UndefDirectiveTrivia:
Classification\Worker_Preprocesser.cs (1)
51case SyntaxKind.UndefDirectiveTrivia:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
415SyntaxKind.UndefDirectiveTrivia);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
43public int? UndefDirectiveTrivia => (int)SyntaxKind.UndefDirectiveTrivia;