30 references to BadDirectiveTrivia
Microsoft.CodeAnalysis.CSharp (2)
Syntax\DirectiveTriviaSyntax.cs (1)
39
case SyntaxKind.
BadDirectiveTrivia
:
Syntax\SyntaxKindFacts.cs (1)
292
case SyntaxKind.
BadDirectiveTrivia
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\CSharpTriviaFormatter.cs (1)
91
if (trivia2.IsKind(SyntaxKind.
BadDirectiveTrivia
) && existingWhitespaceBetween.Lines == 0 && !implicitLineBreak)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (24)
IncrementalParsing\IncrementalParsingTests.cs (2)
373
Assert.Equal(SyntaxKind.
BadDirectiveTrivia
, newDirectives[2].Kind());
407
Assert.Equal(SyntaxKind.
BadDirectiveTrivia
, oldDirectives[2].Kind());
LexicalAndXml\PreprocessorTests.cs (16)
495
VerifyDirectives(node, SyntaxKind.
BadDirectiveTrivia
);
506
VerifyDirectives(node, SyntaxKind.
BadDirectiveTrivia
);
1576
new DirectiveInfo { Kind = SyntaxKind.
BadDirectiveTrivia
, Status = NodeStatus.IsNotActive },
1597
new DirectiveInfo { Kind = SyntaxKind.
BadDirectiveTrivia
, Status = NodeStatus.IsNotActive },
1617
new DirectiveInfo { Kind = SyntaxKind.
BadDirectiveTrivia
, Status = NodeStatus.IsActive }, // ?
1629
VerifyDirectives(node, SyntaxKind.
BadDirectiveTrivia
);
1640
VerifyDirectives(node, SyntaxKind.
BadDirectiveTrivia
);
1652
VerifyDirectives(node, SyntaxKind.
BadDirectiveTrivia
);
1665
VerifyDirectives(node, SyntaxKind.
BadDirectiveTrivia
);
1963
new DirectiveInfo { Kind = SyntaxKind.
BadDirectiveTrivia
, Status = NodeStatus.IsActive },
1979
VerifyDirectives(node, SyntaxKind.RegionDirectiveTrivia, SyntaxKind.
BadDirectiveTrivia
, SyntaxKind.EndRegionDirectiveTrivia);
1994
VerifyDirectives(node, SyntaxKind.RegionDirectiveTrivia, SyntaxKind.
BadDirectiveTrivia
, SyntaxKind.EndRegionDirectiveTrivia);
2012
new DirectiveInfo { Kind = SyntaxKind.
BadDirectiveTrivia
, Status = NodeStatus.IsActive });
2031
new DirectiveInfo { Kind = SyntaxKind.
BadDirectiveTrivia
, Status = NodeStatus.IsActive },
2050
new DirectiveInfo { Kind = SyntaxKind.
BadDirectiveTrivia
, Status = NodeStatus.IsNotActive });
2069
new DirectiveInfo { Kind = SyntaxKind.
BadDirectiveTrivia
, Status = NodeStatus.IsNotActive },
Syntax\SyntaxNodeTests.cs (6)
375
testContainsHelper1("#elif true", SyntaxKind.
BadDirectiveTrivia
);
377
testContainsHelper1("#else", SyntaxKind.
BadDirectiveTrivia
);
379
testContainsHelper1("#endif", SyntaxKind.
BadDirectiveTrivia
);
381
testContainsHelper1("#endregion", SyntaxKind.
BadDirectiveTrivia
);
391
testContainsHelper2(new[] { SyntaxKind.
BadDirectiveTrivia
}, SyntaxFactory.ParseCompilationUnit(" #!command", options: TestOptions.Script));
392
testContainsHelper2(new[] { SyntaxKind.
BadDirectiveTrivia
}, SyntaxFactory.ParseCompilationUnit("#!command", options: TestOptions.Regular));
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Classification\Worker.cs (1)
253
case SyntaxKind.
BadDirectiveTrivia
:
Classification\Worker_Preprocesser.cs (1)
45
case SyntaxKind.
BadDirectiveTrivia
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\CSharpTriviaFormatter.cs (1)
91
if (trivia2.IsKind(SyntaxKind.
BadDirectiveTrivia
) && existingWhitespaceBetween.Lines == 0 && !implicitLineBreak)