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