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