46 references to WarningKeyword
Microsoft.CodeAnalysis.CSharp (7)
Parser\DirectiveParser.cs (4)
83case SyntaxKind.WarningKeyword: 564if (this.CurrentToken.ContextualKind == SyntaxKind.WarningKeyword) 566var warning = this.EatContextualToken(SyntaxKind.WarningKeyword); 669var warning = this.EatToken(SyntaxKind.WarningKeyword, ErrorCode.WRN_IllegalPragma, reportError: isActive);
Syntax\SyntaxKindFacts.cs (3)
94case SyntaxKind.WarningKeyword: 1135return SyntaxKind.WarningKeyword; 1675case SyntaxKind.WarningKeyword:
Microsoft.CodeAnalysis.CSharp.Features (5)
Completion\CompletionProviders\SnippetCompletionProvider.cs (1)
140SyntaxKind.WarningKeyword))
Completion\KeywordRecommenders\DisableKeywordRecommender.cs (1)
34previousToken1.Kind() == SyntaxKind.WarningKeyword &&
Completion\KeywordRecommenders\EnableKeywordRecommender.cs (1)
35previousToken1.Kind() == SyntaxKind.WarningKeyword &&
Completion\KeywordRecommenders\RestoreKeywordRecommender.cs (1)
26(previousToken1.Kind() == SyntaxKind.WarningKeyword &&
Completion\KeywordRecommenders\WarningKeywordRecommender.cs (1)
13: base(SyntaxKind.WarningKeyword, isValidInPreprocessorContext: true)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (34)
Generated\Syntax.Test.xml.Generated.cs (8)
707=> InternalSyntaxFactory.WarningDirectiveTrivia(InternalSyntaxFactory.Token(SyntaxKind.HashToken), InternalSyntaxFactory.Token(SyntaxKind.WarningKeyword), 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()); 3694Assert.Equal(SyntaxKind.WarningKeyword, node.WarningKeyword.Kind); 3796Assert.Equal(SyntaxKind.WarningKeyword, node.WarningKeyword.Kind); 10923=> SyntaxFactory.WarningDirectiveTrivia(SyntaxFactory.Token(SyntaxKind.HashToken), SyntaxFactory.Token(SyntaxKind.WarningKeyword), 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()); 13910Assert.Equal(SyntaxKind.WarningKeyword, node.WarningKeyword.Kind()); 14012Assert.Equal(SyntaxKind.WarningKeyword, node.WarningKeyword.Kind());
LexicalAndXml\PreprocessorTests.cs (26)
315Assert.Equal(SyntaxKind.WarningKeyword, pwd.WarningKeyword.Kind()); 3676WarningOrChecksumKind = SyntaxKind.WarningKeyword, 3693WarningOrChecksumKind = SyntaxKind.WarningKeyword, 3708WarningOrChecksumKind = SyntaxKind.WarningKeyword, 3724WarningOrChecksumKind = SyntaxKind.WarningKeyword, 3740WarningOrChecksumKind = SyntaxKind.WarningKeyword, 3757WarningOrChecksumKind = SyntaxKind.WarningKeyword, 3773WarningOrChecksumKind = SyntaxKind.WarningKeyword, 3789WarningOrChecksumKind = SyntaxKind.WarningKeyword, 3805WarningOrChecksumKind = SyntaxKind.WarningKeyword, 3821WarningOrChecksumKind = SyntaxKind.WarningKeyword, 3837WarningOrChecksumKind = SyntaxKind.WarningKeyword, 3853WarningOrChecksumKind = SyntaxKind.WarningKeyword, 3884WarningOrChecksumKind = SyntaxKind.WarningKeyword, 3909WarningOrChecksumKind = SyntaxKind.WarningKeyword, 3925WarningOrChecksumKind = SyntaxKind.WarningKeyword, 3941WarningOrChecksumKind = SyntaxKind.WarningKeyword, 3957WarningOrChecksumKind = SyntaxKind.WarningKeyword, 3973WarningOrChecksumKind = SyntaxKind.WarningKeyword, 3990WarningOrChecksumKind = SyntaxKind.WarningKeyword, 4007WarningOrChecksumKind = SyntaxKind.WarningKeyword, 4023WarningOrChecksumKind = SyntaxKind.WarningKeyword, 4039WarningOrChecksumKind = SyntaxKind.WarningKeyword, 4054WarningOrChecksumKind = SyntaxKind.WarningKeyword, 4069WarningOrChecksumKind = SyntaxKind.WarningKeyword, 4084WarningOrChecksumKind = SyntaxKind.WarningKeyword,