11 references to WarningsKeyword
Microsoft.CodeAnalysis.CSharp (7)
Parser\DirectiveParser.cs (2)
553
SyntaxKind.
WarningsKeyword
=> EatToken(),
557
_ => EatToken(SyntaxKind.
WarningsKeyword
, ErrorCode.ERR_NullableDirectiveTargetExpected, reportError: !setting.IsMissing && isActive)
Syntax\NullableContextStateMap.cs (1)
165
SyntaxKind.
WarningsKeyword
=> new NullableContextState(position, warningsState: setting, annotationsState: previousContext.AnnotationsState),
Syntax\SyntaxKindFacts.cs (4)
106
case SyntaxKind.
WarningsKeyword
:
135
case SyntaxKind.
WarningsKeyword
:
1159
return SyntaxKind.
WarningsKeyword
;
1699
case SyntaxKind.
WarningsKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveRedundantNullableDirectiveDiagnosticAnalyzer.cs (1)
134
else if (directive.TargetToken.IsKind(SyntaxKind.
WarningsKeyword
))
Microsoft.CodeAnalysis.CSharp.Features (2)
Completion\KeywordRecommenders\WarningsKeywordRecommender.cs (1)
13
: base(SyntaxKind.
WarningsKeyword
, isValidInPreprocessorContext: true)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveRedundantNullableDirectiveDiagnosticAnalyzer.cs (1)
134
else if (directive.TargetToken.IsKind(SyntaxKind.
WarningsKeyword
))
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
LexicalAndXml\PreprocessorTests.cs (1)
273
Assert.True(target.Kind() == SyntaxKind.
WarningsKeyword
|| target.Kind() == SyntaxKind.AnnotationsKeyword ||