13 references to WRN_WarningDirective
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (2)
344case ErrorCode.WRN_WarningDirective: 1165or ErrorCode.WRN_WarningDirective
Generated\ErrorFacts.Generated.cs (1)
66case ErrorCode.WRN_WarningDirective:
Parser\DirectiveParser.cs (1)
329eod = this.AddError(eod, triviaOffset, triviaWidth, isError ? ErrorCode.ERR_ErrorDirective : ErrorCode.WRN_WarningDirective, errorText);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (9)
LexicalAndXml\DisabledRegionTests.cs (2)
44Diagnostic(ErrorCode.WRN_WarningDirective, @"""warning2""").WithArguments(@"""warning2""")); 171Diagnostic(ErrorCode.WRN_WarningDirective, @"""warning""").WithArguments(@"""warning"""));
LexicalAndXml\PreprocessorTests.cs (4)
2863VerifyErrorSpecial(node, new DirectiveInfo { Number = (int)ErrorCode.WRN_WarningDirective, Text = "#warning: 'W1'" }); 2966VerifyErrorSpecial(node, new DirectiveInfo { Number = (int)ErrorCode.WRN_WarningDirective, Text = "#warning: 'Your monkey is alive'" }); 3019VerifyErrorSpecial(node, new DirectiveInfo { Number = (int)ErrorCode.WRN_WarningDirective, Text = "#warning: 'W4'" }); 3122VerifyErrorSpecial(node, new DirectiveInfo { Number = (int)ErrorCode.WRN_WarningDirective, Text = "#warning: ''" });
Parsing\ParserErrorMessageTests.cs (1)
5892ParseAndValidate(test, Diagnostic(ErrorCode.WRN_WarningDirective, "//This is a WARNING!").WithArguments("//This is a WARNING!"));
Parsing\ParserRegressionTests.cs (1)
208Diagnostic(ErrorCode.WRN_WarningDirective, "hello").WithArguments("hello").WithLocation(4, 14),
Parsing\ParsingErrorRecoveryTests.cs (1)
8619Diagnostic(ErrorCode.WRN_WarningDirective, "W2").WithArguments("W2").WithLocation(4, 10));