55 references to LineDirectiveTrivia
Microsoft.CodeAnalysis.CSharp (4)
CommandLine\CSharpCompiler.cs (1)
351d => d.IsActive && !d.HasErrors && d.Kind() == SyntaxKind.LineDirectiveTrivia))
Syntax\CSharpLineDirectiveMap.cs (1)
24return directive.IsActive && (directive.Kind() is SyntaxKind.LineDirectiveTrivia or SyntaxKind.LineSpanDirectiveTrivia);
Syntax\DirectiveTriviaSyntax.cs (1)
45case SyntaxKind.LineDirectiveTrivia:
Syntax\SyntaxKindFacts.cs (1)
286case SyntaxKind.LineDirectiveTrivia:
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (49)
LexicalAndXml\PreprocessorTests.cs (35)
221case SyntaxKind.LineDirectiveTrivia: 3349VerifyDirectivesSpecial(node, new DirectiveInfo { Kind = SyntaxKind.LineDirectiveTrivia, Status = NodeStatus.IsActive, Number = 1000 }); 3359VerifyDirectivesSpecial(node, new DirectiveInfo { Kind = SyntaxKind.LineDirectiveTrivia, Status = NodeStatus.IsActive, Number = 1000, Text = "bogus.cs" }); 3369VerifyDirectivesSpecial(node, new DirectiveInfo { Kind = SyntaxKind.LineDirectiveTrivia, Status = NodeStatus.IsActive, Number = -1 }); 3380VerifyDirectivesSpecial(node, new DirectiveInfo { Kind = SyntaxKind.LineDirectiveTrivia, Status = NodeStatus.IsActive, Number = -1 }); 3390VerifyDirectivesSpecial(node, new DirectiveInfo { Kind = SyntaxKind.LineDirectiveTrivia, Status = NodeStatus.IsActive, Number = -1 }); 3400VerifyDirectivesSpecial(node, new DirectiveInfo { Kind = SyntaxKind.LineDirectiveTrivia, Status = NodeStatus.IsActive, Number = -2 }); 3411VerifyDirectivesSpecial(node, new DirectiveInfo { Kind = SyntaxKind.LineDirectiveTrivia, Status = NodeStatus.IsActive, Number = -2 }); 3421VerifyDirectivesSpecial(node, new DirectiveInfo { Kind = SyntaxKind.LineDirectiveTrivia, Status = NodeStatus.IsActive, Number = -2 }); 3432VerifyDirectivesSpecial(node, new DirectiveInfo { Kind = SyntaxKind.LineDirectiveTrivia, Status = NodeStatus.IsActive }); 3443VerifyDirectivesSpecial(node, new DirectiveInfo { Kind = SyntaxKind.LineDirectiveTrivia, Status = NodeStatus.IsActive }); 3454VerifyDirectivesSpecial(node, new DirectiveInfo { Kind = SyntaxKind.LineDirectiveTrivia, Status = NodeStatus.IsActive, Text = "bogus.cs" }); 3465VerifyDirectivesSpecial(node, new DirectiveInfo { Kind = SyntaxKind.LineDirectiveTrivia, Status = NodeStatus.IsActive, Number = 16707566, Text = "XYZ" }); 3506VerifyDirectivesSpecial(node, new DirectiveInfo { Kind = SyntaxKind.LineDirectiveTrivia, Status = NodeStatus.IsActive, Number = 1000 }); 3516VerifyDirectivesSpecial(node, new DirectiveInfo { Kind = SyntaxKind.LineDirectiveTrivia, Status = NodeStatus.IsActive, Number = 1000 }); 3527VerifyDirectivesSpecial(node, new DirectiveInfo { Kind = SyntaxKind.LineDirectiveTrivia, Status = NodeStatus.IsActive, Number = 1000, Text = "bogus.cs" }); 3537VerifyDirectivesSpecial(node, new DirectiveInfo { Kind = SyntaxKind.LineDirectiveTrivia, Status = NodeStatus.IsActive, Number = 12345, Text = "bogus.cs" }); 3555VerifyDirectivesSpecial(tree.GetCompilationUnitRoot(), new DirectiveInfo { Kind = SyntaxKind.LineDirectiveTrivia, Status = NodeStatus.IsActive, Number = 100, Text = "test.cs" }); 3577VerifyDirectives(node, SyntaxKind.LineDirectiveTrivia); 3593VerifyDirectives(node, SyntaxKind.LineDirectiveTrivia); 3610VerifyDirectives(node, SyntaxKind.LineDirectiveTrivia); 3627VerifyDirectives(node, SyntaxKind.LineDirectiveTrivia); 3657VerifyDirectives(node, SyntaxKind.LineDirectiveTrivia, SyntaxKind.LineDirectiveTrivia, SyntaxKind.LineDirectiveTrivia, 3658SyntaxKind.LineDirectiveTrivia, SyntaxKind.LineDirectiveTrivia, SyntaxKind.LineDirectiveTrivia, SyntaxKind.LineDirectiveTrivia, SyntaxKind.LineDirectiveTrivia, 3659SyntaxKind.LineDirectiveTrivia, SyntaxKind.LineDirectiveTrivia, SyntaxKind.LineDirectiveTrivia, SyntaxKind.LineDirectiveTrivia, SyntaxKind.LineDirectiveTrivia);
Parsing\LineSpanDirectiveParsingTests.cs (14)
32UsingNode(node.GetDirectives().Single(d => d.Kind() is SyntaxKind.LineDirectiveTrivia or SyntaxKind.LineSpanDirectiveTrivia)); 846N(SyntaxKind.LineDirectiveTrivia); 1921N(SyntaxKind.LineDirectiveTrivia); 1943N(SyntaxKind.LineDirectiveTrivia); 1964N(SyntaxKind.LineDirectiveTrivia); 1986N(SyntaxKind.LineDirectiveTrivia); 2010N(SyntaxKind.LineDirectiveTrivia); 2032N(SyntaxKind.LineDirectiveTrivia); 2056N(SyntaxKind.LineDirectiveTrivia); 2078N(SyntaxKind.LineDirectiveTrivia); 2104N(SyntaxKind.LineDirectiveTrivia); 2130N(SyntaxKind.LineDirectiveTrivia); 2156N(SyntaxKind.LineDirectiveTrivia); 2182N(SyntaxKind.LineDirectiveTrivia);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Classification\Worker.cs (1)
246case SyntaxKind.LineDirectiveTrivia:
Classification\Worker_Preprocesser.cs (1)
54case SyntaxKind.LineDirectiveTrivia: