156 references to EndIfDirectiveTrivia
Microsoft.CodeAnalysis.CSharp (14)
Parser\Directives.cs (2)
230
case SyntaxKind.
EndIfDirectiveTrivia
:
415
case SyntaxKind.
EndIfDirectiveTrivia
:
Parser\Lexer.cs (1)
2392
if (directive.Kind == SyntaxKind.
EndIfDirectiveTrivia
|| (branching != null && branching.BranchTaken))
Syntax\CSharpSyntaxTree.cs (2)
243
case SyntaxKind.
EndIfDirectiveTrivia
:
270
case SyntaxKind.
EndIfDirectiveTrivia
:
Syntax\DirectiveTriviaSyntax.cs (7)
29
case SyntaxKind.
EndIfDirectiveTrivia
:
168
case SyntaxKind.
EndIfDirectiveTrivia
:
185
case SyntaxKind.
EndIfDirectiveTrivia
:
196
if (d.Kind() == SyntaxKind.
EndIfDirectiveTrivia
)
234
while (d != null && d.Kind() != SyntaxKind.
EndIfDirectiveTrivia
)
261
case SyntaxKind.
EndIfDirectiveTrivia
:
334
case SyntaxKind.
EndIfDirectiveTrivia
:
Syntax\SyntaxKindFacts.cs (1)
279
case SyntaxKind.
EndIfDirectiveTrivia
:
Syntax\SyntaxNodeRemover.cs (1)
503
case SyntaxKind.
EndIfDirectiveTrivia
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (8)
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)
112
SyntaxKind.
EndIfDirectiveTrivia
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\BlockSyntaxExtensions.cs (1)
65
if (leadingDirectives.Any(t => t.Kind() == SyntaxKind.
EndIfDirectiveTrivia
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DirectiveSyntaxExtensions.cs (1)
71
or SyntaxKind.
EndIfDirectiveTrivia
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
554
if (trivia.GetStructure() is (kind: SyntaxKind.RegionDirectiveTrivia or SyntaxKind.EndRegionDirectiveTrivia or SyntaxKind.IfDirectiveTrivia or SyntaxKind.
EndIfDirectiveTrivia
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\CSharpTriviaFormatter.cs (1)
115
else if (previous.IsKind(SyntaxKind.
EndIfDirectiveTrivia
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
38
public int EndIfDirectiveTrivia => (int)SyntaxKind.
EndIfDirectiveTrivia
;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (1)
367
(kind: SyntaxKind.EndOfLineTrivia or SyntaxKind.
EndIfDirectiveTrivia
or SyntaxKind.EndRegionDirectiveTrivia),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\CompilationUnitSyntaxExtensions.cs (1)
155
if (root.Usings[i].GetLeadingTrivia().Any(trivia => trivia.IsKind(SyntaxKind.
EndIfDirectiveTrivia
)))
Microsoft.CodeAnalysis.CSharp.Features (6)
ExtractMethod\Extensions.cs (1)
195
case SyntaxKind.
EndIfDirectiveTrivia
:
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)
112
SyntaxKind.
EndIfDirectiveTrivia
:
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (1)
367
(kind: SyntaxKind.EndOfLineTrivia or SyntaxKind.
EndIfDirectiveTrivia
or SyntaxKind.EndRegionDirectiveTrivia),
Structure\Providers\DisabledTextTriviaStructureProvider.cs (1)
100
case SyntaxKind.
EndIfDirectiveTrivia
:
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (118)
IncrementalParsing\IncrementalParsingTests.cs (2)
362
Assert.Equal(SyntaxKind.
EndIfDirectiveTrivia
, oldDirectives[3].Kind());
417
Assert.Equal(SyntaxKind.
EndIfDirectiveTrivia
, newDirectives[3].Kind());
LexicalAndXml\LexicalTests.cs (2)
548
Assert.Equal(SyntaxKind.
EndIfDirectiveTrivia
, trivia[2].Kind());
583
Assert.Equal(SyntaxKind.
EndIfDirectiveTrivia
, token.GetLeadingTrivia()[0].Kind());
LexicalAndXml\PreprocessorTests.cs (101)
588
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
606
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
629
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
649
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
668
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
683
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
700
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
715
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
736
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
760
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
784
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
808
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
832
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
856
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
881
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
907
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
932
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
957
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
985
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
1013
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
1042
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
1063
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive },
1064
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
1083
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsNotActive },
1084
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
1103
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive },
1104
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
1125
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsNotActive },
1126
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
1147
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsNotActive },
1148
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
1171
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsNotActive },
1172
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
1194
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsNotActive },
1197
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsNotActive },
1198
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
1214
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
1230
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
1246
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
1262
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
1278
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
1293
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
1308
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
1323
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
1338
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
1353
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
1368
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
1383
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
1398
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
1413
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
1428
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
1523
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
1540
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
1556
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
1577
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
1598
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
1618
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
1703
VerifyDirectives(node, SyntaxKind.IfDirectiveTrivia, SyntaxKind.ElseDirectiveTrivia, SyntaxKind.
EndIfDirectiveTrivia
);
1719
VerifyDirectives(node, SyntaxKind.IfDirectiveTrivia, SyntaxKind.ElseDirectiveTrivia, SyntaxKind.
EndIfDirectiveTrivia
);
1784
SyntaxKind.IfDirectiveTrivia, SyntaxKind.
EndIfDirectiveTrivia
, SyntaxKind.IfDirectiveTrivia, 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
);
1860
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive },
1862
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
1888
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsNotActive },
1889
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
1945
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive },
2448
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
2467
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
2486
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
2507
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
2609
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
2632
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive },
2633
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
2663
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive },
2665
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive },
2666
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
2692
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsNotActive },
2695
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive },
2696
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
2726
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive },
2727
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive },
2728
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
2747
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
2765
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
2785
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
2868
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive },
2873
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
2983
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
2999
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
3029
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
3072
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
3101
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
4635
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive },
4653
new DirectiveInfo { Kind = SyntaxKind.
EndIfDirectiveTrivia
, Status = NodeStatus.IsActive });
Syntax\SyntaxNodeTests.cs (13)
375
testContainsHelper1("#if true\r\n#endif", SyntaxKind.IfDirectiveTrivia, SyntaxKind.
EndIfDirectiveTrivia
);
1441
Assert.Equal(SyntaxKind.
EndIfDirectiveTrivia
, d4.Kind());
1460
Assert.Equal(SyntaxKind.
EndIfDirectiveTrivia
, d1.Kind());
1530
Assert.Equal(SyntaxKind.
EndIfDirectiveTrivia
, related[4].Kind());
1561
Assert.Equal(SyntaxKind.
EndIfDirectiveTrivia
, related[4].Kind());
1589
Assert.Equal(SyntaxKind.
EndIfDirectiveTrivia
, d.Kind());
1597
Assert.Equal(SyntaxKind.
EndIfDirectiveTrivia
, related[4].Kind());
1631
Assert.Equal(SyntaxKind.
EndIfDirectiveTrivia
, related[4].Kind());
1665
Assert.Equal(SyntaxKind.
EndIfDirectiveTrivia
, related[4].Kind());
1688
Assert.Equal(SyntaxKind.
EndIfDirectiveTrivia
, d.Kind());
1696
Assert.Equal(SyntaxKind.
EndIfDirectiveTrivia
, related[4].Kind());
1718
Assert.Equal(SyntaxKind.
EndIfDirectiveTrivia
, d.Kind());
1726
Assert.Equal(SyntaxKind.
EndIfDirectiveTrivia
, related[4].Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (8)
Classification\Worker.cs (1)
239
case SyntaxKind.
EndIfDirectiveTrivia
:
Classification\Worker_Preprocesser.cs (1)
30
case SyntaxKind.
EndIfDirectiveTrivia
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\BlockSyntaxExtensions.cs (1)
65
if (leadingDirectives.Any(t => t.Kind() == SyntaxKind.
EndIfDirectiveTrivia
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DirectiveSyntaxExtensions.cs (1)
71
or SyntaxKind.
EndIfDirectiveTrivia
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
554
if (trivia.GetStructure() is (kind: SyntaxKind.RegionDirectiveTrivia or SyntaxKind.EndRegionDirectiveTrivia or SyntaxKind.IfDirectiveTrivia or SyntaxKind.
EndIfDirectiveTrivia
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\CSharpTriviaFormatter.cs (1)
115
else if (previous.IsKind(SyntaxKind.
EndIfDirectiveTrivia
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
38
public int EndIfDirectiveTrivia => (int)SyntaxKind.
EndIfDirectiveTrivia
;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\CompilationUnitSyntaxExtensions.cs (1)
155
if (root.Usings[i].GetLeadingTrivia().Any(trivia => trivia.IsKind(SyntaxKind.
EndIfDirectiveTrivia
)))