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