62 references to EndRegionDirectiveTrivia
Microsoft.CodeAnalysis.CSharp (9)
Parser\Directives.cs (2)
239
case SyntaxKind.
EndRegionDirectiveTrivia
:
419
case SyntaxKind.
EndRegionDirectiveTrivia
:
Syntax\DirectiveTriviaSyntax.cs (5)
33
case SyntaxKind.
EndRegionDirectiveTrivia
:
208
if (d.Kind() == SyntaxKind.
EndRegionDirectiveTrivia
)
241
while (d != null && d.Kind() != SyntaxKind.
EndRegionDirectiveTrivia
)
306
case SyntaxKind.
EndRegionDirectiveTrivia
:
341
case SyntaxKind.
EndRegionDirectiveTrivia
:
Syntax\SyntaxKindFacts.cs (1)
281
case SyntaxKind.
EndRegionDirectiveTrivia
:
Syntax\SyntaxNodeRemover.cs (1)
483
case SyntaxKind.
EndRegionDirectiveTrivia
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DirectiveSyntaxExtensions.cs (1)
64
=> directive?.Kind() is SyntaxKind.RegionDirectiveTrivia or SyntaxKind.
EndRegionDirectiveTrivia
;
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)
100
if (trivia2.Kind() is SyntaxKind.RegionDirectiveTrivia or SyntaxKind.
EndRegionDirectiveTrivia
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.CodeShapeAnalyzer.cs (2)
66
trivia.Kind() == SyntaxKind.
EndRegionDirectiveTrivia
||
227
not SyntaxKind.
EndRegionDirectiveTrivia
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
40
public int EndRegionDirectiveTrivia => (int)SyntaxKind.
EndRegionDirectiveTrivia
;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (2)
228
if (token.IsKind(SyntaxKind.HashToken) && token.Parent!.Kind() is not (SyntaxKind.RegionDirectiveTrivia or SyntaxKind.
EndRegionDirectiveTrivia
))
367
(kind: SyntaxKind.EndOfLineTrivia or SyntaxKind.EndIfDirectiveTrivia or SyntaxKind.
EndRegionDirectiveTrivia
),
Microsoft.CodeAnalysis.CSharp.Features (4)
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (1)
230
if (nextToken.IsKind(SyntaxKind.HashToken) && nextToken.Parent.IsKind(SyntaxKind.
EndRegionDirectiveTrivia
))
ExtractMethod\Extensions.cs (1)
184
case SyntaxKind.
EndRegionDirectiveTrivia
:
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (2)
228
if (token.IsKind(SyntaxKind.HashToken) && token.Parent!.Kind() is not (SyntaxKind.RegionDirectiveTrivia or SyntaxKind.
EndRegionDirectiveTrivia
))
367
(kind: SyntaxKind.EndOfLineTrivia or SyntaxKind.EndIfDirectiveTrivia or SyntaxKind.
EndRegionDirectiveTrivia
),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (32)
IncrementalParsing\IncrementalParsingTests.cs (2)
361
Assert.Equal(SyntaxKind.
EndRegionDirectiveTrivia
, oldDirectives[2].Kind());
416
Assert.Equal(SyntaxKind.
EndRegionDirectiveTrivia
, newDirectives[2].Kind());
LexicalAndXml\PreprocessorTests.cs (26)
1908
new DirectiveInfo { Kind = SyntaxKind.
EndRegionDirectiveTrivia
, Status = NodeStatus.IsActive });
1926
new DirectiveInfo { Kind = SyntaxKind.
EndRegionDirectiveTrivia
, Status = NodeStatus.IsActive },
1927
new DirectiveInfo { Kind = SyntaxKind.
EndRegionDirectiveTrivia
, Status = NodeStatus.IsActive });
1946
new DirectiveInfo { Kind = SyntaxKind.
EndRegionDirectiveTrivia
, Status = NodeStatus.IsActive });
1964
new DirectiveInfo { Kind = SyntaxKind.
EndRegionDirectiveTrivia
, Status = NodeStatus.IsActive });
1979
VerifyDirectives(node, SyntaxKind.RegionDirectiveTrivia, SyntaxKind.BadDirectiveTrivia, SyntaxKind.
EndRegionDirectiveTrivia
);
1994
VerifyDirectives(node, SyntaxKind.RegionDirectiveTrivia, SyntaxKind.BadDirectiveTrivia, SyntaxKind.
EndRegionDirectiveTrivia
);
2032
new DirectiveInfo { Kind = SyntaxKind.
EndRegionDirectiveTrivia
, Status = NodeStatus.IsActive });
2070
new DirectiveInfo { Kind = SyntaxKind.
EndRegionDirectiveTrivia
, Status = NodeStatus.IsNotActive });
2085
new DirectiveInfo { Kind = SyntaxKind.
EndRegionDirectiveTrivia
, Status = NodeStatus.IsActive });
2101
new DirectiveInfo { Kind = SyntaxKind.
EndRegionDirectiveTrivia
, Status = NodeStatus.IsActive });
2123
new DirectiveInfo { Kind = SyntaxKind.
EndRegionDirectiveTrivia
, Status = NodeStatus.IsActive });
2148
VerifyDirectives(node, SyntaxKind.RegionDirectiveTrivia, SyntaxKind.
EndRegionDirectiveTrivia
);
2165
VerifyDirectives(node, SyntaxKind.RegionDirectiveTrivia, SyntaxKind.
EndRegionDirectiveTrivia
, SyntaxKind.RegionDirectiveTrivia, SyntaxKind.
EndRegionDirectiveTrivia
);
2180
VerifyDirectives(node, SyntaxKind.RegionDirectiveTrivia, SyntaxKind.
EndRegionDirectiveTrivia
, SyntaxKind.RegionDirectiveTrivia, SyntaxKind.
EndRegionDirectiveTrivia
);
2196
VerifyDirectives(node, SyntaxKind.RegionDirectiveTrivia, SyntaxKind.
EndRegionDirectiveTrivia
);
2211
new DirectiveInfo { Kind = SyntaxKind.
EndRegionDirectiveTrivia
, Status = NodeStatus.IsActive });
2232
new DirectiveInfo { Kind = SyntaxKind.
EndRegionDirectiveTrivia
, Status = NodeStatus.IsActive });
2253
new DirectiveInfo { Kind = SyntaxKind.
EndRegionDirectiveTrivia
, Status = NodeStatus.IsActive });
2274
new DirectiveInfo { Kind = SyntaxKind.
EndRegionDirectiveTrivia
, Status = NodeStatus.IsActive });
2295
new DirectiveInfo { Kind = SyntaxKind.
EndRegionDirectiveTrivia
, Status = NodeStatus.IsActive });
2316
new DirectiveInfo { Kind = SyntaxKind.
EndRegionDirectiveTrivia
, Status = NodeStatus.IsActive });
2337
new DirectiveInfo { Kind = SyntaxKind.
EndRegionDirectiveTrivia
, Status = NodeStatus.IsActive });
2358
new DirectiveInfo { Kind = SyntaxKind.
EndRegionDirectiveTrivia
, Status = NodeStatus.IsActive });
Syntax\SyntaxNodeTests.cs (4)
377
testContainsHelper1("#region\r\n#endregion", SyntaxKind.RegionDirectiveTrivia, SyntaxKind.
EndRegionDirectiveTrivia
);
1746
Assert.Equal(SyntaxKind.
EndRegionDirectiveTrivia
, related[1].Kind());
1762
Assert.Equal(SyntaxKind.
EndRegionDirectiveTrivia
, d.Kind());
1767
Assert.Equal(SyntaxKind.
EndRegionDirectiveTrivia
, related[1].Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (8)
Classification\Worker.cs (1)
241
case SyntaxKind.
EndRegionDirectiveTrivia
:
Classification\Worker_Preprocesser.cs (1)
36
case SyntaxKind.
EndRegionDirectiveTrivia
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DirectiveSyntaxExtensions.cs (1)
64
=> directive?.Kind() is SyntaxKind.RegionDirectiveTrivia or SyntaxKind.
EndRegionDirectiveTrivia
;
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)
100
if (trivia2.Kind() is SyntaxKind.RegionDirectiveTrivia or SyntaxKind.
EndRegionDirectiveTrivia
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.CodeShapeAnalyzer.cs (2)
66
trivia.Kind() == SyntaxKind.
EndRegionDirectiveTrivia
||
227
not SyntaxKind.
EndRegionDirectiveTrivia
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
40
public int EndRegionDirectiveTrivia => (int)SyntaxKind.
EndRegionDirectiveTrivia
;
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\CSharpCodeModelService.cs (1)
3295
if (lastNonWhitespaceTrivia.Kind() == SyntaxKind.
EndRegionDirectiveTrivia
)