180 references to HashToken
Microsoft.CodeAnalysis.CSharp (4)
Parser\DirectiveParser.cs (1)
37
var hash = this.EatToken(SyntaxKind.
HashToken
, false);
Parser\Lexer.cs (1)
2576
info.Kind = SyntaxKind.
HashToken
;
Syntax\SyntaxKindFacts.cs (2)
168
return kind == SyntaxKind.
HashToken
;
1421
case SyntaxKind.
HashToken
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
553
if (token.IsKind(SyntaxKind.
HashToken
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\StructuredTriviaFormattingRule.cs (1)
29
if (previousToken.Kind() == SyntaxKind.
HashToken
&& SyntaxFacts.IsPreprocessorKeyword(currentToken.Kind()))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
143
public int HashToken => (int)SyntaxKind.
HashToken
;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (1)
228
if (token.IsKind(SyntaxKind.
HashToken
) && token.Parent!.Kind() is not (SyntaxKind.RegionDirectiveTrivia or SyntaxKind.EndRegionDirectiveTrivia))
Microsoft.CodeAnalysis.CSharp.Features (17)
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (3)
51
if (token.Kind() is not (SyntaxKind.EnableKeyword or SyntaxKind.RestoreKeyword or SyntaxKind.DisableKeyword or SyntaxKind.NullableKeyword or SyntaxKind.
HashToken
) ||
225
if (firstToken.IsKind(SyntaxKind.
HashToken
) && firstToken.Parent.IsKind(SyntaxKind.RegionDirectiveTrivia))
230
if (nextToken.IsKind(SyntaxKind.
HashToken
) && nextToken.Parent.IsKind(SyntaxKind.EndRegionDirectiveTrivia))
Completion\KeywordRecommenders\AnnotationsKeywordRecommender.cs (1)
28
previousToken3.Kind() == SyntaxKind.
HashToken
;
Completion\KeywordRecommenders\ChecksumKeywordRecommender.cs (1)
26
previousToken2.Kind() == SyntaxKind.
HashToken
;
Completion\KeywordRecommenders\DefaultKeywordRecommender.cs (1)
41
previousToken2.Kind() == SyntaxKind.
HashToken
;
Completion\KeywordRecommenders\DisableKeywordRecommender.cs (2)
24
previousToken2.Kind() == SyntaxKind.
HashToken
)
36
previousToken3.Kind() == SyntaxKind.
HashToken
;
Completion\KeywordRecommenders\EnableKeywordRecommender.cs (2)
25
previousToken2.Kind() == SyntaxKind.
HashToken
)
37
previousToken3.Kind() == SyntaxKind.
HashToken
;
Completion\KeywordRecommenders\HiddenKeywordRecommender.cs (1)
30
previousToken2.Kind() == SyntaxKind.
HashToken
;
Completion\KeywordRecommenders\RestoreKeywordRecommender.cs (2)
28
previousToken3.Kind() == SyntaxKind.
HashToken
) ||
32
previousToken2.Kind() == SyntaxKind.
HashToken
);
Completion\KeywordRecommenders\WarningKeywordRecommender.cs (1)
32
previousToken2.Kind() == SyntaxKind.
HashToken
;
Completion\KeywordRecommenders\WarningsKeywordRecommender.cs (1)
28
previousToken3.Kind() == SyntaxKind.
HashToken
;
QuickInfo\CSharpSyntacticQuickInfoProvider.cs (1)
45
case SyntaxKind.
HashToken
:
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (1)
228
if (token.IsKind(SyntaxKind.
HashToken
) && token.Parent!.Kind() is not (SyntaxKind.RegionDirectiveTrivia or SyntaxKind.EndRegionDirectiveTrivia))
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (152)
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());
3595
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.Kind);
3611
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.Kind);
3627
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.Kind);
3641
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.Kind);
3654
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.Kind);
3667
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.Kind);
3680
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.Kind);
3693
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.Kind);
3706
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.Kind);
3719
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.Kind);
3733
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.Kind);
3747
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.Kind);
3776
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.Kind);
3794
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.Kind);
3810
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.Kind);
3827
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.Kind);
3841
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.Kind);
3855
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.Kind);
3868
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.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());
13811
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.Kind());
13827
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.Kind());
13843
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.Kind());
13857
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.Kind());
13870
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.Kind());
13883
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.Kind());
13896
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.Kind());
13909
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.Kind());
13922
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.Kind());
13935
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.Kind());
13949
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.Kind());
13963
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.Kind());
13992
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.Kind());
14010
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.Kind());
14026
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.Kind());
14043
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.Kind());
14057
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.Kind());
14071
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.Kind());
14084
Assert.Equal(SyntaxKind.
HashToken
, node.HashToken.Kind());
Parsing\LineSpanDirectiveParsingTests.cs (70)
53
N(SyntaxKind.
HashToken
);
94
N(SyntaxKind.
HashToken
);
135
N(SyntaxKind.
HashToken
);
171
N(SyntaxKind.
HashToken
);
205
N(SyntaxKind.
HashToken
);
246
N(SyntaxKind.
HashToken
);
280
N(SyntaxKind.
HashToken
);
324
N(SyntaxKind.
HashToken
);
359
N(SyntaxKind.
HashToken
);
397
N(SyntaxKind.
HashToken
);
434
N(SyntaxKind.
HashToken
);
471
N(SyntaxKind.
HashToken
);
508
N(SyntaxKind.
HashToken
);
545
N(SyntaxKind.
HashToken
);
582
N(SyntaxKind.
HashToken
);
619
N(SyntaxKind.
HashToken
);
656
N(SyntaxKind.
HashToken
);
693
N(SyntaxKind.
HashToken
);
730
N(SyntaxKind.
HashToken
);
767
N(SyntaxKind.
HashToken
);
804
N(SyntaxKind.
HashToken
);
848
N(SyntaxKind.
HashToken
);
868
N(SyntaxKind.
HashToken
);
905
N(SyntaxKind.
HashToken
);
942
N(SyntaxKind.
HashToken
);
979
N(SyntaxKind.
HashToken
);
1016
N(SyntaxKind.
HashToken
);
1053
N(SyntaxKind.
HashToken
);
1090
N(SyntaxKind.
HashToken
);
1127
N(SyntaxKind.
HashToken
);
1164
N(SyntaxKind.
HashToken
);
1201
N(SyntaxKind.
HashToken
);
1238
N(SyntaxKind.
HashToken
);
1275
N(SyntaxKind.
HashToken
);
1312
N(SyntaxKind.
HashToken
);
1349
N(SyntaxKind.
HashToken
);
1386
N(SyntaxKind.
HashToken
);
1423
N(SyntaxKind.
HashToken
);
1460
N(SyntaxKind.
HashToken
);
1497
N(SyntaxKind.
HashToken
);
1534
N(SyntaxKind.
HashToken
);
1571
N(SyntaxKind.
HashToken
);
1608
N(SyntaxKind.
HashToken
);
1657
N(SyntaxKind.
HashToken
);
1692
N(SyntaxKind.
HashToken
);
1742
N(SyntaxKind.
HashToken
);
1777
N(SyntaxKind.
HashToken
);
1814
N(SyntaxKind.
HashToken
);
1851
N(SyntaxKind.
HashToken
);
1885
N(SyntaxKind.
HashToken
);
1923
N(SyntaxKind.
HashToken
);
1945
N(SyntaxKind.
HashToken
);
1966
N(SyntaxKind.
HashToken
);
1988
N(SyntaxKind.
HashToken
);
2012
N(SyntaxKind.
HashToken
);
2034
N(SyntaxKind.
HashToken
);
2058
N(SyntaxKind.
HashToken
);
2080
N(SyntaxKind.
HashToken
);
2106
N(SyntaxKind.
HashToken
);
2132
N(SyntaxKind.
HashToken
);
2158
N(SyntaxKind.
HashToken
);
2184
N(SyntaxKind.
HashToken
);
2205
N(SyntaxKind.
HashToken
);
2243
N(SyntaxKind.
HashToken
);
2284
N(SyntaxKind.
HashToken
);
2322
N(SyntaxKind.
HashToken
);
2360
N(SyntaxKind.
HashToken
);
2398
N(SyntaxKind.
HashToken
);
2437
N(SyntaxKind.
HashToken
);
2476
N(SyntaxKind.
HashToken
);
Parsing\ScriptParsingTests.cs (1)
9735
Assert.Equal(SyntaxKind.
HashToken
, shebang.HashToken.Kind());
Syntax\SyntaxNodeTests.cs (4)
245
Assert.Equal(SyntaxKind.
HashToken
, nodesAndTokens[1].Kind());
282
Assert.Equal(SyntaxKind.
HashToken
, nodesAndTokens[2].Kind());
1938
var zeroWidth = SyntaxFactory.ElseDirectiveTrivia(SyntaxFactory.MissingToken(SyntaxKind.
HashToken
), SyntaxFactory.MissingToken(SyntaxKind.ElseKeyword), SyntaxFactory.MissingToken(SyntaxKind.EndOfDirectiveToken), false, false);
1980
var zeroWidth = SyntaxFactory.ElseDirectiveTrivia(SyntaxFactory.MissingToken(SyntaxKind.
HashToken
), SyntaxFactory.MissingToken(SyntaxKind.ElseKeyword), SyntaxFactory.MissingToken(SyntaxKind.EndOfDirectiveToken), false, false);
Syntax\SyntaxNormalizerTests.cs (1)
3659
SyntaxFactory.Token(SyntaxKind.
HashToken
),
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
553
if (token.IsKind(SyntaxKind.
HashToken
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\StructuredTriviaFormattingRule.cs (1)
29
if (previousToken.Kind() == SyntaxKind.
HashToken
&& SyntaxFacts.IsPreprocessorKeyword(currentToken.Kind()))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
143
public int HashToken => (int)SyntaxKind.
HashToken
;