68 references to ElseDirectiveTrivia
Microsoft.CodeAnalysis.CSharp (15)
Parser\Directives.cs (5)
62case SyntaxKind.ElseDirectiveTrivia: 170case SyntaxKind.ElseDirectiveTrivia: 276case SyntaxKind.ElseDirectiveTrivia: 336case SyntaxKind.ElseDirectiveTrivia: 414case SyntaxKind.ElseDirectiveTrivia:
Syntax\CSharpSyntaxTree.cs (2)
242case SyntaxKind.ElseDirectiveTrivia: 265case SyntaxKind.ElseDirectiveTrivia:
Syntax\DirectiveTriviaSyntax.cs (6)
27case SyntaxKind.ElseDirectiveTrivia: 167case SyntaxKind.ElseDirectiveTrivia: 184case SyntaxKind.ElseDirectiveTrivia: 193case SyntaxKind.ElseDirectiveTrivia: 268case SyntaxKind.ElseDirectiveTrivia: 292case SyntaxKind.ElseDirectiveTrivia:
Syntax\SyntaxKindFacts.cs (1)
278case SyntaxKind.ElseDirectiveTrivia:
Syntax\SyntaxNodeRemover.cs (1)
501case SyntaxKind.ElseDirectiveTrivia:
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\Analyzers\CSharp\Analyzers\NewLines\ArrowExpressionClausePlacement\ArrowExpressionClausePlacementDiagnosticAnalyzer.cs (1)
106SyntaxKind.IfDirectiveTrivia or SyntaxKind.ElseDirectiveTrivia or SyntaxKind.ElifDirectiveTrivia or SyntaxKind.EndIfDirectiveTrivia))
src\Analyzers\CSharp\Analyzers\NewLines\ConditionalExpressionPlacement\ConditionalExpressionPlacementDiagnosticAnalyzer.cs (1)
87SyntaxKind.IfDirectiveTrivia or SyntaxKind.ElseDirectiveTrivia or SyntaxKind.ElifDirectiveTrivia or SyntaxKind.EndIfDirectiveTrivia))
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveRedundantNullableDirectiveDiagnosticAnalyzer.cs (1)
111SyntaxKind.ElseDirectiveTrivia or
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
145SyntaxKind.ElseDirectiveTrivia)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DirectiveSyntaxExtensions.cs (1)
70or SyntaxKind.ElseDirectiveTrivia
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
568else if (trivia.GetStructure() is (kind: SyntaxKind.ElseDirectiveTrivia or SyntaxKind.ElifDirectiveTrivia))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
37public int ElseDirectiveTrivia => (int)SyntaxKind.ElseDirectiveTrivia;
Microsoft.CodeAnalysis.CSharp.Features (7)
ExtractMethod\Extensions.cs (1)
203case SyntaxKind.ElseDirectiveTrivia:
src\Analyzers\CSharp\Analyzers\NewLines\ArrowExpressionClausePlacement\ArrowExpressionClausePlacementDiagnosticAnalyzer.cs (1)
106SyntaxKind.IfDirectiveTrivia or SyntaxKind.ElseDirectiveTrivia or SyntaxKind.ElifDirectiveTrivia or SyntaxKind.EndIfDirectiveTrivia))
src\Analyzers\CSharp\Analyzers\NewLines\ConditionalExpressionPlacement\ConditionalExpressionPlacementDiagnosticAnalyzer.cs (1)
87SyntaxKind.IfDirectiveTrivia or SyntaxKind.ElseDirectiveTrivia or SyntaxKind.ElifDirectiveTrivia or SyntaxKind.EndIfDirectiveTrivia))
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveRedundantNullableDirectiveDiagnosticAnalyzer.cs (1)
111SyntaxKind.ElseDirectiveTrivia or
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
145SyntaxKind.ElseDirectiveTrivia)
Structure\Providers\DisabledTextTriviaStructureProvider.cs (2)
51!parentTriviaList[indexInParent - 1].IsKind(SyntaxKind.ElseDirectiveTrivia)) 113case SyntaxKind.ElseDirectiveTrivia:
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (34)
LexicalAndXml\PreprocessorTests.cs (26)
735new DirectiveInfo { Kind = SyntaxKind.ElseDirectiveTrivia, Status = NodeStatus.IsActive | NodeStatus.NotBranchTaken }, 759new DirectiveInfo { Kind = SyntaxKind.ElseDirectiveTrivia, Status = NodeStatus.IsActive | NodeStatus.BranchTaken }, 880new DirectiveInfo { Kind = SyntaxKind.ElseDirectiveTrivia, Status = NodeStatus.IsActive | NodeStatus.NotBranchTaken }, 906new DirectiveInfo { Kind = SyntaxKind.ElseDirectiveTrivia, Status = NodeStatus.IsActive | NodeStatus.NotBranchTaken }, 931new DirectiveInfo { Kind = SyntaxKind.ElseDirectiveTrivia, Status = NodeStatus.IsActive | NodeStatus.BranchTaken }, 956new DirectiveInfo { Kind = SyntaxKind.ElseDirectiveTrivia, Status = NodeStatus.IsActive | NodeStatus.NotBranchTaken }, 984new DirectiveInfo { Kind = SyntaxKind.ElseDirectiveTrivia, Status = NodeStatus.IsActive | NodeStatus.NotBranchTaken }, 1012new DirectiveInfo { Kind = SyntaxKind.ElseDirectiveTrivia, Status = NodeStatus.IsActive | NodeStatus.NotBranchTaken }, 1041new DirectiveInfo { Kind = SyntaxKind.ElseDirectiveTrivia, Status = NodeStatus.IsActive | NodeStatus.BranchTaken }, 1123new DirectiveInfo { Kind = SyntaxKind.ElseDirectiveTrivia, Status = NodeStatus.IsActive | NodeStatus.NotBranchTaken }, 1169new DirectiveInfo { Kind = SyntaxKind.ElseDirectiveTrivia, Status = NodeStatus.IsActive | NodeStatus.NotBranchTaken }, 1196new DirectiveInfo { Kind = SyntaxKind.ElseDirectiveTrivia, Status = NodeStatus.IsNotActive | NodeStatus.NotBranchTaken }, 1575new DirectiveInfo { Kind = SyntaxKind.ElseDirectiveTrivia, Status = NodeStatus.IsActive | NodeStatus.NotBranchTaken }, 1596new DirectiveInfo { Kind = SyntaxKind.ElseDirectiveTrivia, Status = NodeStatus.IsActive | NodeStatus.NotBranchTaken }, 1703VerifyDirectives(node, SyntaxKind.IfDirectiveTrivia, SyntaxKind.ElseDirectiveTrivia, SyntaxKind.EndIfDirectiveTrivia); 1719VerifyDirectives(node, SyntaxKind.IfDirectiveTrivia, SyntaxKind.ElseDirectiveTrivia, SyntaxKind.EndIfDirectiveTrivia); 1785SyntaxKind.IfDirectiveTrivia, SyntaxKind.ErrorDirectiveTrivia, SyntaxKind.ElifDirectiveTrivia, SyntaxKind.ElseDirectiveTrivia, SyntaxKind.ErrorDirectiveTrivia, SyntaxKind.EndIfDirectiveTrivia, 1786SyntaxKind.IfDirectiveTrivia, SyntaxKind.ElseDirectiveTrivia, SyntaxKind.ErrorDirectiveTrivia, SyntaxKind.EndIfDirectiveTrivia, 1787SyntaxKind.IfDirectiveTrivia, SyntaxKind.ElseDirectiveTrivia, SyntaxKind.ErrorDirectiveTrivia, SyntaxKind.EndIfDirectiveTrivia, 1788SyntaxKind.IfDirectiveTrivia, SyntaxKind.ElseDirectiveTrivia, SyntaxKind.ErrorDirectiveTrivia, SyntaxKind.EndIfDirectiveTrivia); 1810VerifyDirectives(node, SyntaxKind.IfDirectiveTrivia, SyntaxKind.ElifDirectiveTrivia, SyntaxKind.ElseDirectiveTrivia, SyntaxKind.EndIfDirectiveTrivia); 1839VerifyDirectives(node, SyntaxKind.IfDirectiveTrivia, SyntaxKind.IfDirectiveTrivia, SyntaxKind.ElseDirectiveTrivia, SyntaxKind.EndIfDirectiveTrivia, SyntaxKind.EndIfDirectiveTrivia); 2630new DirectiveInfo { Kind = SyntaxKind.ElseDirectiveTrivia, Status = NodeStatus.IsActive | NodeStatus.BranchTaken }, 2661new DirectiveInfo { Kind = SyntaxKind.ElseDirectiveTrivia, Status = NodeStatus.IsActive | NodeStatus.BranchTaken }, 2693new DirectiveInfo { Kind = SyntaxKind.ElseDirectiveTrivia, Status = NodeStatus.IsActive | NodeStatus.BranchTaken }, 2721new DirectiveInfo { Kind = SyntaxKind.ElseDirectiveTrivia, Status = NodeStatus.IsActive | NodeStatus.BranchTaken },
Syntax\SyntaxNodeTests.cs (8)
373testContainsHelper1("#if true\r\n#else", SyntaxKind.IfDirectiveTrivia, SyntaxKind.ElseDirectiveTrivia); 1529Assert.Equal(SyntaxKind.ElseDirectiveTrivia, related[3].Kind()); 1560Assert.Equal(SyntaxKind.ElseDirectiveTrivia, related[3].Kind()); 1596Assert.Equal(SyntaxKind.ElseDirectiveTrivia, related[3].Kind()); 1630Assert.Equal(SyntaxKind.ElseDirectiveTrivia, related[3].Kind()); 1664Assert.Equal(SyntaxKind.ElseDirectiveTrivia, related[3].Kind()); 1695Assert.Equal(SyntaxKind.ElseDirectiveTrivia, related[3].Kind()); 1725Assert.Equal(SyntaxKind.ElseDirectiveTrivia, related[3].Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Classification\Worker.cs (1)
238case SyntaxKind.ElseDirectiveTrivia:
Classification\Worker_Preprocesser.cs (1)
27case SyntaxKind.ElseDirectiveTrivia:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DirectiveSyntaxExtensions.cs (1)
70or SyntaxKind.ElseDirectiveTrivia
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
568else if (trivia.GetStructure() is (kind: SyntaxKind.ElseDirectiveTrivia or SyntaxKind.ElifDirectiveTrivia))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
37public int ElseDirectiveTrivia => (int)SyntaxKind.ElseDirectiveTrivia;