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