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