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