11 references to WarningsKeyword
Microsoft.CodeAnalysis.CSharp (7)
Parser\DirectiveParser.cs (2)
550
SyntaxKind.
WarningsKeyword
=> EatToken(),
554
_ => 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)
95
case SyntaxKind.
WarningsKeyword
:
124
case SyntaxKind.
WarningsKeyword
:
1131
return SyntaxKind.
WarningsKeyword
;
1663
case SyntaxKind.
WarningsKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
CSharpRemoveRedundantNullableDirectiveDiagnosticAnalyzer.cs (1)
93
else if (directive.TargetToken.IsKind(SyntaxKind.
WarningsKeyword
))
Microsoft.CodeAnalysis.CSharp.Features (2)
Completion\KeywordRecommenders\WarningsKeywordRecommender.cs (1)
13
: base(SyntaxKind.
WarningsKeyword
, isValidInPreprocessorContext: true)
CSharpRemoveRedundantNullableDirectiveDiagnosticAnalyzer.cs (1)
93
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 ||