182 references to EndOfDirectiveToken
Microsoft.CodeAnalysis.CSharp (13)
Parser\DirectiveParser.cs (6)
555
SyntaxKind.
EndOfDirectiveToken
=> null,
581
while (this.CurrentToken.Kind != SyntaxKind.
EndOfDirectiveToken
)
700
if (this.CurrentToken.Kind != SyntaxKind.
EndOfDirectiveToken
&&
720
while (this.CurrentToken.Kind != SyntaxKind.
EndOfDirectiveToken
&&
728
SyntaxToken endOfDirective = this.CurrentToken.Kind == SyntaxKind.
EndOfDirectiveToken
730
: SyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
);
Parser\Lexer.cs (4)
2468
this.LexDirectiveTrailingTrivia(info.Kind == SyntaxKind.
EndOfDirectiveToken
, ref directiveTriviaCache);
2513
var endOfDirective = SyntaxFactory.Token(leading, SyntaxKind.
EndOfDirectiveToken
, trailing);
2532
info.Kind = SyntaxKind.
EndOfDirectiveToken
;
2538
info.Kind = SyntaxKind.
EndOfDirectiveToken
;
Syntax\SyntaxNormalizer.cs (3)
133
t => SyntaxToken.NonZeroWidth(t) || t.Kind() == SyntaxKind.
EndOfDirectiveToken
,
184
if (currentToken.IsKind(SyntaxKind.
EndOfDirectiveToken
))
634
if (next.Kind() == SyntaxKind.
EndOfDirectiveToken
)
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
395
if (token.Kind() is SyntaxKind.
EndOfDirectiveToken
or SyntaxKind.EndOfFileToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\StructuredTriviaFormattingRule.cs (2)
34
if (previousToken.Kind() == SyntaxKind.RegionKeyword && currentToken.Kind() == SyntaxKind.
EndOfDirectiveToken
)
39
if (currentToken.Kind() == SyntaxKind.
EndOfDirectiveToken
)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (1)
110
return token.Kind() is SyntaxKind.None or SyntaxKind.
EndOfDirectiveToken
or SyntaxKind.EndOfFileToken;
Microsoft.CodeAnalysis.CSharp.Features (4)
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (1)
48
if (token.IsKind(SyntaxKind.
EndOfDirectiveToken
))
Completion\CompletionProviders\Scripting\DirectiveCompletionProviderUtilities.cs (1)
17
if (token.Kind() is SyntaxKind.
EndOfDirectiveToken
or SyntaxKind.EndOfFileToken)
QuickInfo\CSharpDiagnosticAnalyzerQuickInfoProvider.cs (1)
55
=> token.IsKind(SyntaxKind.
EndOfDirectiveToken
)
QuickInfo\CSharpSyntacticQuickInfoProvider.cs (1)
50
case SyntaxKind.
EndOfDirectiveToken
:
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (153)
Generated\Syntax.Test.xml.Generated.cs (76)
686
=> InternalSyntaxFactory.IfDirectiveTrivia(InternalSyntaxFactory.Token(SyntaxKind.HashToken), InternalSyntaxFactory.Token(SyntaxKind.IfKeyword), GenerateIdentifierName(), InternalSyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool(), new bool(), new bool());
689
=> InternalSyntaxFactory.ElifDirectiveTrivia(InternalSyntaxFactory.Token(SyntaxKind.HashToken), InternalSyntaxFactory.Token(SyntaxKind.ElifKeyword), GenerateIdentifierName(), InternalSyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool(), new bool(), new bool());
692
=> InternalSyntaxFactory.ElseDirectiveTrivia(InternalSyntaxFactory.Token(SyntaxKind.HashToken), InternalSyntaxFactory.Token(SyntaxKind.ElseKeyword), InternalSyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool(), new bool());
695
=> InternalSyntaxFactory.EndIfDirectiveTrivia(InternalSyntaxFactory.Token(SyntaxKind.HashToken), InternalSyntaxFactory.Token(SyntaxKind.EndIfKeyword), InternalSyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool());
698
=> InternalSyntaxFactory.RegionDirectiveTrivia(InternalSyntaxFactory.Token(SyntaxKind.HashToken), InternalSyntaxFactory.Token(SyntaxKind.RegionKeyword), InternalSyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool());
701
=> InternalSyntaxFactory.EndRegionDirectiveTrivia(InternalSyntaxFactory.Token(SyntaxKind.HashToken), InternalSyntaxFactory.Token(SyntaxKind.EndRegionKeyword), InternalSyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool());
704
=> InternalSyntaxFactory.ErrorDirectiveTrivia(InternalSyntaxFactory.Token(SyntaxKind.HashToken), InternalSyntaxFactory.Token(SyntaxKind.ErrorKeyword), InternalSyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool());
707
=> InternalSyntaxFactory.WarningDirectiveTrivia(InternalSyntaxFactory.Token(SyntaxKind.HashToken), InternalSyntaxFactory.Token(SyntaxKind.WarningKeyword), InternalSyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool());
710
=> InternalSyntaxFactory.BadDirectiveTrivia(InternalSyntaxFactory.Token(SyntaxKind.HashToken), InternalSyntaxFactory.Identifier("Identifier"), InternalSyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool());
713
=> InternalSyntaxFactory.DefineDirectiveTrivia(InternalSyntaxFactory.Token(SyntaxKind.HashToken), InternalSyntaxFactory.Token(SyntaxKind.DefineKeyword), InternalSyntaxFactory.Identifier("Name"), InternalSyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool());
716
=> InternalSyntaxFactory.UndefDirectiveTrivia(InternalSyntaxFactory.Token(SyntaxKind.HashToken), InternalSyntaxFactory.Token(SyntaxKind.UndefKeyword), InternalSyntaxFactory.Identifier("Name"), InternalSyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool());
719
=> InternalSyntaxFactory.LineDirectiveTrivia(InternalSyntaxFactory.Token(SyntaxKind.HashToken), InternalSyntaxFactory.Token(SyntaxKind.LineKeyword), InternalSyntaxFactory.Literal(null, "1", 1, null), null, InternalSyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool());
725
=> InternalSyntaxFactory.LineSpanDirectiveTrivia(InternalSyntaxFactory.Token(SyntaxKind.HashToken), InternalSyntaxFactory.Token(SyntaxKind.LineKeyword), GenerateLineDirectivePosition(), InternalSyntaxFactory.Token(SyntaxKind.MinusToken), GenerateLineDirectivePosition(), null, InternalSyntaxFactory.Literal(null, "string", "string", null), InternalSyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool());
728
=> InternalSyntaxFactory.PragmaWarningDirectiveTrivia(InternalSyntaxFactory.Token(SyntaxKind.HashToken), InternalSyntaxFactory.Token(SyntaxKind.PragmaKeyword), InternalSyntaxFactory.Token(SyntaxKind.WarningKeyword), InternalSyntaxFactory.Token(SyntaxKind.DisableKeyword), new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList<Syntax.InternalSyntax.ExpressionSyntax>(), InternalSyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool());
731
=> InternalSyntaxFactory.PragmaChecksumDirectiveTrivia(InternalSyntaxFactory.Token(SyntaxKind.HashToken), InternalSyntaxFactory.Token(SyntaxKind.PragmaKeyword), InternalSyntaxFactory.Token(SyntaxKind.ChecksumKeyword), InternalSyntaxFactory.Literal(null, "string", "string", null), InternalSyntaxFactory.Literal(null, "string", "string", null), InternalSyntaxFactory.Literal(null, "string", "string", null), InternalSyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool());
734
=> InternalSyntaxFactory.ReferenceDirectiveTrivia(InternalSyntaxFactory.Token(SyntaxKind.HashToken), InternalSyntaxFactory.Token(SyntaxKind.ReferenceKeyword), InternalSyntaxFactory.Literal(null, "string", "string", null), InternalSyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool());
737
=> InternalSyntaxFactory.LoadDirectiveTrivia(InternalSyntaxFactory.Token(SyntaxKind.HashToken), InternalSyntaxFactory.Token(SyntaxKind.LoadKeyword), InternalSyntaxFactory.Literal(null, "string", "string", null), InternalSyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool());
740
=> InternalSyntaxFactory.ShebangDirectiveTrivia(InternalSyntaxFactory.Token(SyntaxKind.HashToken), InternalSyntaxFactory.Token(SyntaxKind.ExclamationToken), InternalSyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool());
743
=> InternalSyntaxFactory.NullableDirectiveTrivia(InternalSyntaxFactory.Token(SyntaxKind.HashToken), InternalSyntaxFactory.Token(SyntaxKind.NullableKeyword), InternalSyntaxFactory.Token(SyntaxKind.EnableKeyword), null, InternalSyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool());
3598
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind);
3614
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind);
3629
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind);
3643
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind);
3656
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind);
3669
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind);
3682
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind);
3695
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind);
3708
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind);
3722
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind);
3736
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind);
3751
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind);
3783
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind);
3799
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind);
3816
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind);
3830
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind);
3844
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind);
3857
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind);
3872
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind);
10902
=> SyntaxFactory.IfDirectiveTrivia(SyntaxFactory.Token(SyntaxKind.HashToken), SyntaxFactory.Token(SyntaxKind.IfKeyword), GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool(), new bool(), new bool());
10905
=> SyntaxFactory.ElifDirectiveTrivia(SyntaxFactory.Token(SyntaxKind.HashToken), SyntaxFactory.Token(SyntaxKind.ElifKeyword), GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool(), new bool(), new bool());
10908
=> SyntaxFactory.ElseDirectiveTrivia(SyntaxFactory.Token(SyntaxKind.HashToken), SyntaxFactory.Token(SyntaxKind.ElseKeyword), SyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool(), new bool());
10911
=> SyntaxFactory.EndIfDirectiveTrivia(SyntaxFactory.Token(SyntaxKind.HashToken), SyntaxFactory.Token(SyntaxKind.EndIfKeyword), SyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool());
10914
=> SyntaxFactory.RegionDirectiveTrivia(SyntaxFactory.Token(SyntaxKind.HashToken), SyntaxFactory.Token(SyntaxKind.RegionKeyword), SyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool());
10917
=> SyntaxFactory.EndRegionDirectiveTrivia(SyntaxFactory.Token(SyntaxKind.HashToken), SyntaxFactory.Token(SyntaxKind.EndRegionKeyword), SyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool());
10920
=> SyntaxFactory.ErrorDirectiveTrivia(SyntaxFactory.Token(SyntaxKind.HashToken), SyntaxFactory.Token(SyntaxKind.ErrorKeyword), SyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool());
10923
=> SyntaxFactory.WarningDirectiveTrivia(SyntaxFactory.Token(SyntaxKind.HashToken), SyntaxFactory.Token(SyntaxKind.WarningKeyword), SyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool());
10926
=> SyntaxFactory.BadDirectiveTrivia(SyntaxFactory.Token(SyntaxKind.HashToken), SyntaxFactory.Identifier("Identifier"), SyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool());
10929
=> SyntaxFactory.DefineDirectiveTrivia(SyntaxFactory.Token(SyntaxKind.HashToken), SyntaxFactory.Token(SyntaxKind.DefineKeyword), SyntaxFactory.Identifier("Name"), SyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool());
10932
=> SyntaxFactory.UndefDirectiveTrivia(SyntaxFactory.Token(SyntaxKind.HashToken), SyntaxFactory.Token(SyntaxKind.UndefKeyword), SyntaxFactory.Identifier("Name"), SyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool());
10935
=> SyntaxFactory.LineDirectiveTrivia(SyntaxFactory.Token(SyntaxKind.HashToken), SyntaxFactory.Token(SyntaxKind.LineKeyword), SyntaxFactory.Literal("1", 1), default(SyntaxToken), SyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool());
10941
=> SyntaxFactory.LineSpanDirectiveTrivia(SyntaxFactory.Token(SyntaxKind.HashToken), SyntaxFactory.Token(SyntaxKind.LineKeyword), GenerateLineDirectivePosition(), SyntaxFactory.Token(SyntaxKind.MinusToken), GenerateLineDirectivePosition(), default(SyntaxToken), SyntaxFactory.Literal("string", "string"), SyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool());
10944
=> SyntaxFactory.PragmaWarningDirectiveTrivia(SyntaxFactory.Token(SyntaxKind.HashToken), SyntaxFactory.Token(SyntaxKind.PragmaKeyword), SyntaxFactory.Token(SyntaxKind.WarningKeyword), SyntaxFactory.Token(SyntaxKind.DisableKeyword), new SeparatedSyntaxList<ExpressionSyntax>(), SyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool());
10947
=> SyntaxFactory.PragmaChecksumDirectiveTrivia(SyntaxFactory.Token(SyntaxKind.HashToken), SyntaxFactory.Token(SyntaxKind.PragmaKeyword), SyntaxFactory.Token(SyntaxKind.ChecksumKeyword), SyntaxFactory.Literal("string", "string"), SyntaxFactory.Literal("string", "string"), SyntaxFactory.Literal("string", "string"), SyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool());
10950
=> SyntaxFactory.ReferenceDirectiveTrivia(SyntaxFactory.Token(SyntaxKind.HashToken), SyntaxFactory.Token(SyntaxKind.ReferenceKeyword), SyntaxFactory.Literal("string", "string"), SyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool());
10953
=> SyntaxFactory.LoadDirectiveTrivia(SyntaxFactory.Token(SyntaxKind.HashToken), SyntaxFactory.Token(SyntaxKind.LoadKeyword), SyntaxFactory.Literal("string", "string"), SyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool());
10956
=> SyntaxFactory.ShebangDirectiveTrivia(SyntaxFactory.Token(SyntaxKind.HashToken), SyntaxFactory.Token(SyntaxKind.ExclamationToken), SyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool());
10959
=> SyntaxFactory.NullableDirectiveTrivia(SyntaxFactory.Token(SyntaxKind.HashToken), SyntaxFactory.Token(SyntaxKind.NullableKeyword), SyntaxFactory.Token(SyntaxKind.EnableKeyword), default(SyntaxToken), SyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
), new bool());
13814
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind());
13830
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind());
13845
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind());
13859
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind());
13872
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind());
13885
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind());
13898
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind());
13911
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind());
13924
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind());
13938
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind());
13952
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind());
13967
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind());
13999
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind());
14015
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind());
14032
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind());
14046
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind());
14060
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind());
14073
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind());
14088
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, node.EndOfDirectiveToken.Kind());
Parsing\LineSpanDirectiveParsingTests.cs (70)
73
N(SyntaxKind.
EndOfDirectiveToken
);
114
N(SyntaxKind.
EndOfDirectiveToken
);
156
N(SyntaxKind.
EndOfDirectiveToken
);
191
N(SyntaxKind.
EndOfDirectiveToken
);
226
N(SyntaxKind.
EndOfDirectiveToken
);
266
N(SyntaxKind.
EndOfDirectiveToken
);
300
N(SyntaxKind.
EndOfDirectiveToken
);
345
N(SyntaxKind.
EndOfDirectiveToken
);
380
N(SyntaxKind.
EndOfDirectiveToken
);
417
N(SyntaxKind.
EndOfDirectiveToken
);
454
N(SyntaxKind.
EndOfDirectiveToken
);
491
N(SyntaxKind.
EndOfDirectiveToken
);
528
N(SyntaxKind.
EndOfDirectiveToken
);
565
N(SyntaxKind.
EndOfDirectiveToken
);
602
N(SyntaxKind.
EndOfDirectiveToken
);
639
N(SyntaxKind.
EndOfDirectiveToken
);
676
N(SyntaxKind.
EndOfDirectiveToken
);
713
N(SyntaxKind.
EndOfDirectiveToken
);
750
N(SyntaxKind.
EndOfDirectiveToken
);
787
N(SyntaxKind.
EndOfDirectiveToken
);
825
N(SyntaxKind.
EndOfDirectiveToken
);
851
N(SyntaxKind.
EndOfDirectiveToken
);
888
N(SyntaxKind.
EndOfDirectiveToken
);
925
N(SyntaxKind.
EndOfDirectiveToken
);
962
N(SyntaxKind.
EndOfDirectiveToken
);
999
N(SyntaxKind.
EndOfDirectiveToken
);
1036
N(SyntaxKind.
EndOfDirectiveToken
);
1073
N(SyntaxKind.
EndOfDirectiveToken
);
1110
N(SyntaxKind.
EndOfDirectiveToken
);
1147
N(SyntaxKind.
EndOfDirectiveToken
);
1184
N(SyntaxKind.
EndOfDirectiveToken
);
1221
N(SyntaxKind.
EndOfDirectiveToken
);
1258
N(SyntaxKind.
EndOfDirectiveToken
);
1295
N(SyntaxKind.
EndOfDirectiveToken
);
1332
N(SyntaxKind.
EndOfDirectiveToken
);
1369
N(SyntaxKind.
EndOfDirectiveToken
);
1406
N(SyntaxKind.
EndOfDirectiveToken
);
1443
N(SyntaxKind.
EndOfDirectiveToken
);
1480
N(SyntaxKind.
EndOfDirectiveToken
);
1517
N(SyntaxKind.
EndOfDirectiveToken
);
1554
N(SyntaxKind.
EndOfDirectiveToken
);
1591
N(SyntaxKind.
EndOfDirectiveToken
);
1628
N(SyntaxKind.
EndOfDirectiveToken
);
1678
N(SyntaxKind.
EndOfDirectiveToken
);
1713
N(SyntaxKind.
EndOfDirectiveToken
);
1763
N(SyntaxKind.
EndOfDirectiveToken
);
1797
N(SyntaxKind.
EndOfDirectiveToken
);
1834
N(SyntaxKind.
EndOfDirectiveToken
);
1871
N(SyntaxKind.
EndOfDirectiveToken
);
1905
N(SyntaxKind.
EndOfDirectiveToken
);
1927
N(SyntaxKind.
EndOfDirectiveToken
);
1948
N(SyntaxKind.
EndOfDirectiveToken
);
1970
N(SyntaxKind.
EndOfDirectiveToken
);
1991
N(SyntaxKind.
EndOfDirectiveToken
);
2016
N(SyntaxKind.
EndOfDirectiveToken
);
2037
N(SyntaxKind.
EndOfDirectiveToken
);
2062
N(SyntaxKind.
EndOfDirectiveToken
);
2083
N(SyntaxKind.
EndOfDirectiveToken
);
2112
N(SyntaxKind.
EndOfDirectiveToken
);
2135
N(SyntaxKind.
EndOfDirectiveToken
);
2164
N(SyntaxKind.
EndOfDirectiveToken
);
2187
N(SyntaxKind.
EndOfDirectiveToken
);
2225
N(SyntaxKind.
EndOfDirectiveToken
);
2263
N(SyntaxKind.
EndOfDirectiveToken
);
2304
N(SyntaxKind.
EndOfDirectiveToken
);
2342
N(SyntaxKind.
EndOfDirectiveToken
);
2380
N(SyntaxKind.
EndOfDirectiveToken
);
2419
N(SyntaxKind.
EndOfDirectiveToken
);
2458
N(SyntaxKind.
EndOfDirectiveToken
);
2496
N(SyntaxKind.
EndOfDirectiveToken
);
Parsing\ScriptParsingTests.cs (1)
9738
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, endOfDirective.Kind());
Syntax\SyntaxNodeTests.cs (4)
249
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, nodesAndTokens[5].Kind());
286
Assert.Equal(SyntaxKind.
EndOfDirectiveToken
, nodesAndTokens[6].Kind());
1915
var zeroWidth = SyntaxFactory.ElseDirectiveTrivia(SyntaxFactory.MissingToken(SyntaxKind.HashToken), SyntaxFactory.MissingToken(SyntaxKind.ElseKeyword), SyntaxFactory.MissingToken(SyntaxKind.
EndOfDirectiveToken
), false, false);
1957
var zeroWidth = SyntaxFactory.ElseDirectiveTrivia(SyntaxFactory.MissingToken(SyntaxKind.HashToken), SyntaxFactory.MissingToken(SyntaxKind.ElseKeyword), SyntaxFactory.MissingToken(SyntaxKind.
EndOfDirectiveToken
), false, false);
Syntax\SyntaxNormalizerTests.cs (2)
3645
SyntaxKind.
EndOfDirectiveToken
,
3666
SyntaxFactory.Token(SyntaxKind.
EndOfDirectiveToken
),
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Formatting\CSharpSyntaxFormattingService.cs (1)
312
or SyntaxKind.
EndOfDirectiveToken
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
395
if (token.Kind() is SyntaxKind.
EndOfDirectiveToken
or SyntaxKind.EndOfFileToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\StructuredTriviaFormattingRule.cs (2)
34
if (previousToken.Kind() == SyntaxKind.RegionKeyword && currentToken.Kind() == SyntaxKind.
EndOfDirectiveToken
)
39
if (currentToken.Kind() == SyntaxKind.
EndOfDirectiveToken
)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (1)
110
return token.Kind() is SyntaxKind.None or SyntaxKind.
EndOfDirectiveToken
or SyntaxKind.EndOfFileToken;
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
Formatting\FormattingTriviaTests.cs (1)
1787
.Where(tr => tr.IsKind(SyntaxKind.
EndOfDirectiveToken
)), (o, r) => o.WithTrailingTrivia(o.LeadingTrivia.Add(SyntaxFactory.ElasticEndOfLine(newLine)))
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\EndRegionFormattingRule.cs (1)
23
if (previousToken.Kind() == SyntaxKind.
EndOfDirectiveToken
)
LanguageService\CSharpHelpContextService.cs (1)
360
if (token.IsKind(SyntaxKind.
EndOfDirectiveToken
))