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