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