21 references to PragmaKeyword
Microsoft.CodeAnalysis.CSharp (4)
Parser\DirectiveParser.cs (1)
94
case SyntaxKind.
PragmaKeyword
:
Syntax\SyntaxKindFacts.cs (3)
97
case SyntaxKind.
PragmaKeyword
:
1141
return SyntaxKind.
PragmaKeyword
;
1681
case SyntaxKind.
PragmaKeyword
:
Microsoft.CodeAnalysis.CSharp.Features (7)
Completion\CompletionProviders\SnippetCompletionProvider.cs (1)
136
SyntaxKind.
PragmaKeyword
or
Completion\KeywordRecommenders\ChecksumKeywordRecommender.cs (1)
25
previousToken1.Kind() == SyntaxKind.
PragmaKeyword
&&
Completion\KeywordRecommenders\DisableKeywordRecommender.cs (1)
35
previousToken2.Kind() == SyntaxKind.
PragmaKeyword
&&
Completion\KeywordRecommenders\EnableKeywordRecommender.cs (1)
36
previousToken2.Kind() == SyntaxKind.
PragmaKeyword
&&
Completion\KeywordRecommenders\PragmaKeywordRecommender.cs (1)
13
: base(SyntaxKind.
PragmaKeyword
, isValidInPreprocessorContext: true)
Completion\KeywordRecommenders\RestoreKeywordRecommender.cs (1)
27
previousToken2.Kind() == SyntaxKind.
PragmaKeyword
&&
Completion\KeywordRecommenders\WarningKeywordRecommender.cs (1)
31
previousToken1.Kind() == SyntaxKind.
PragmaKeyword
&&
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (10)
Generated\Syntax.Test.xml.Generated.cs (8)
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());
3795
Assert.Equal(SyntaxKind.
PragmaKeyword
, node.PragmaKeyword.Kind);
3811
Assert.Equal(SyntaxKind.
PragmaKeyword
, node.PragmaKeyword.Kind);
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());
14011
Assert.Equal(SyntaxKind.
PragmaKeyword
, node.PragmaKeyword.Kind());
14027
Assert.Equal(SyntaxKind.
PragmaKeyword
, node.PragmaKeyword.Kind());
LexicalAndXml\PreprocessorTests.cs (2)
308
Assert.Equal(SyntaxKind.
PragmaKeyword
, pwd.PragmaKeyword.Kind());
358
Assert.Equal(SyntaxKind.
PragmaKeyword
, pcd.PragmaKeyword.Kind());