110 references to WRN_ErrorOverride
Microsoft.CodeAnalysis.CSharp (10)
Errors\ErrorFacts.cs (2)
350
case ErrorCode.
WRN_ErrorOverride
:
1256
case ErrorCode.
WRN_ErrorOverride
:
Generated\ErrorFacts.Generated.cs (1)
92
case ErrorCode.
WRN_ErrorOverride
:
Parser\DocumentationCommentParser.cs (5)
801
SyntaxDiagnosticInfo crefInfo = new SyntaxDiagnosticInfo(rawInfo.Offset, rawInfo.Width, ErrorCode.
WRN_ErrorOverride
, rawInfo, rawInfo.Code);
1013
SyntaxDiagnosticInfo crefInfo = new SyntaxDiagnosticInfo(offset, width, ErrorCode.
WRN_ErrorOverride
, rawInfo, rawInfo.Code);
1060
SyntaxDiagnosticInfo crefInfo = new SyntaxDiagnosticInfo(offset, width, ErrorCode.
WRN_ErrorOverride
, rawInfo, rawInfo.Code);
1103
SyntaxDiagnosticInfo crefInfo = new SyntaxDiagnosticInfo(offset, width, ErrorCode.
WRN_ErrorOverride
, rawInfo, rawInfo.Code);
1294
typeSyntax = this.AddError(typeSyntax, ErrorCode.
WRN_ErrorOverride
,
Parser\Lexer.cs (1)
4325
this.AddError(ErrorCode.
WRN_ErrorOverride
, info, info.Code);
Parser\SyntaxParser.cs (1)
1093
return AddError(node, ErrorCode.
WRN_ErrorOverride
, info, (int)info.Code);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\SemanticErrorTests.cs (2)
21692
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "@").WithArguments("Overloadable operator expected", "1037"),
21834
Diagnostic(ErrorCode.
WRN_ErrorOverride
, @"""").WithArguments("Identifier expected", "1001"));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (94)
Compilation\CompilationAPITests.cs (1)
63
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "").WithArguments("Unexpected character '.'", "1056").WithLocation(2, 17));
DocumentationComments\CrefTests.cs (50)
38
Diagnostic(ErrorCode.
WRN_ErrorOverride
, @"""").WithArguments("Identifier expected", "1001"));
56
Diagnostic(ErrorCode.
WRN_ErrorOverride
, @"""").WithArguments("Identifier expected", "1001"));
74
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "#").WithArguments("Identifier expected", "1001"),
77
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "").WithArguments("Unexpected character '#'", "1056"));
95
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "`").WithArguments("Identifier expected", "1001"),
98
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "").WithArguments("Unexpected character '`'", "1056"));
116
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "<").WithArguments("Identifier expected", "1001"),
137
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "").WithArguments("Identifier expected", "1001"),
165
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "/").WithArguments(") expected", "1026"),
190
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "").WithArguments("Identifier expected", "1001"),
193
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "").WithArguments("Syntax error, '>' expected", "1003"),
284
Diagnostic(ErrorCode.
WRN_ErrorOverride
, ":").WithArguments("Identifier expected", "1001"),
290
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "::").WithArguments("Identifier expected", "1001"),
296
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "::").WithArguments("Identifier expected", "1001"),
326
Diagnostic(ErrorCode.
WRN_ErrorOverride
, ".").WithArguments("Identifier expected", "1001"));
355
Diagnostic(ErrorCode.
WRN_ErrorOverride
, ".").WithArguments("Identifier expected", "1001"));
384
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "~").WithArguments("Identifier expected", "1001"));
3425
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "2").WithArguments("Identifier expected", "1001"),
3428
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "").WithArguments("Unexpected character '2'", "1056"),
3435
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "3").WithArguments("Identifier expected", "1001"),
3438
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "").WithArguments("Unexpected character '3'", "1056"),
3448
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "").WithArguments("Unexpected character '4'", "1056"),
3458
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "").WithArguments("Unexpected character '5'", "1056"));
3481
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "3").WithArguments("Identifier expected", "1001"),
3484
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "3").WithArguments("Syntax error, '>' expected", "1003"),
3487
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "").WithArguments("Unexpected character '3'", "1056"),
3493
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "3").WithArguments("Identifier expected", "1001"),
3496
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "3").WithArguments("Syntax error, '>' expected", "1003"),
3499
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "").WithArguments("Unexpected character '3'", "1056"),
3542
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "int").WithArguments("Type parameter declaration must be an identifier not a type", "0081"),
3548
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "A.B").WithArguments("Type parameter declaration must be an identifier not a type", "0081"),
3554
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "G{T}").WithArguments("Type parameter declaration must be an identifier not a type", "0081"),
3560
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "int").WithArguments("Type parameter declaration must be an identifier not a type", "0081"),
3566
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "A.B").WithArguments("Type parameter declaration must be an identifier not a type", "0081"),
3572
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "G{T}").WithArguments("Type parameter declaration must be an identifier not a type", "0081"));
4683
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "A{T}").WithArguments("Type parameter declaration must be an identifier not a type", "0081"),
4689
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "A{T}").WithArguments("Type parameter declaration must be an identifier not a type", "0081"),
4695
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "A{T}").WithArguments("Type parameter declaration must be an identifier not a type", "0081"));
4739
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "int").WithArguments("Type parameter declaration must be an identifier not a type", "0081"),
4745
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "int").WithArguments("Type parameter declaration must be an identifier not a type", "0081"),
4751
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "int").WithArguments("Type parameter declaration must be an identifier not a type", "0081"));
5275
Diagnostic(ErrorCode.
WRN_ErrorOverride
, ",").WithArguments("Identifier expected", "1001"),
5278
Diagnostic(ErrorCode.
WRN_ErrorOverride
, ",").WithArguments("Identifier expected", "1001"),
5307
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "=").WithArguments("Overloadable operator expected", "1037"));
5333
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "q").WithArguments("Overloadable operator expected", "1037"));
5648
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "{").WithArguments("Identifier expected", "1001"),
5651
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "'").WithArguments("Identifier expected", "1001"),
5654
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "'").WithArguments("Syntax error, '>' expected", "1003"));
5827
Diagnostic(ErrorCode.
WRN_ErrorOverride
, " }}").WithArguments("Overloadable operator expected", "1037"));
6526
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "}").WithArguments("Identifier expected", "1001").WithLocation(3, 18),
DocumentationComments\DocumentationCommentCompilerTests.cs (3)
3763
Diagnostic(ErrorCode.
WRN_ErrorOverride
, includeElement).WithArguments("Identifier expected", "1001"),
3766
Diagnostic(ErrorCode.
WRN_ErrorOverride
, includeElement).WithArguments("Unexpected character '#'", "1056"));
4172
Diagnostic(ErrorCode.
WRN_ErrorOverride
, includeElement).WithArguments("Unexpected character '#'", "1056"),
DocumentationComments\DocumentationModeTests.cs (8)
118
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "#").WithArguments("Identifier expected", "1001"),
121
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "").WithArguments("Unexpected character '#'", "1056"),
128
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "#").WithArguments("Identifier expected", "1001"),
131
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "").WithArguments("Unexpected character '#'", "1056"));
168
Diagnostic(ErrorCode.
WRN_ErrorOverride
, includeElement).WithArguments("Identifier expected", "1001"),
171
Diagnostic(ErrorCode.
WRN_ErrorOverride
, includeElement).WithArguments("Unexpected character '#'", "1056"),
178
Diagnostic(ErrorCode.
WRN_ErrorOverride
, includeElement).WithArguments("Identifier expected", "1001"),
181
Diagnostic(ErrorCode.
WRN_ErrorOverride
, includeElement).WithArguments("Unexpected character '#'", "1056")
Symbols\CheckedUserDefinedOperatorsTests.cs (28)
526
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "checked").WithArguments("Feature 'checked user-defined operators' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").WithLocation(3, 29),
647
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "checked").WithArguments("Feature 'checked user-defined operators' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").WithLocation(3, 29),
698
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "checked").WithArguments("Feature 'checked user-defined operators' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").WithLocation(3, 29),
803
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "(").WithArguments("Overloadable operator expected", "1037").WithLocation(3, 37)
852
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "(").WithArguments("Overloadable operator expected", "1037").WithLocation(3, 29)
1068
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "checked").WithArguments("Feature 'checked user-defined operators' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").WithLocation(3, 29)
1118
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "checked").WithArguments("Feature 'checked user-defined operators' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").WithLocation(3, 29)
1171
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "checked").WithArguments("Feature 'checked user-defined operators' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").WithLocation(3, 29)
1220
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "checked").WithArguments("Feature 'checked user-defined operators' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").WithLocation(3, 29)
1707
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "checked").WithArguments("Feature 'checked user-defined operators' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").WithLocation(3, 29),
1814
Diagnostic(ErrorCode.
WRN_ErrorOverride
, @"""").WithArguments("Overloadable operator expected", "1037").WithLocation(3, 37)
1829
Diagnostic(ErrorCode.
WRN_ErrorOverride
, @"""").WithArguments("Overloadable operator expected", "1037").WithLocation(3, 37),
1847
Diagnostic(ErrorCode.
WRN_ErrorOverride
, @"""").WithArguments("Overloadable operator expected", "1037").WithLocation(3, 37)
1877
Diagnostic(ErrorCode.
WRN_ErrorOverride
, @"""").WithArguments("Overloadable operator expected", "1037").WithLocation(3, 29)
1939
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "checked").WithArguments("Feature 'checked user-defined operators' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").WithLocation(3, 29),
2046
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "(").WithArguments("Overloadable operator expected", "1037").WithLocation(3, 37)
2064
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "(").WithArguments("Overloadable operator expected", "1037").WithLocation(3, 37),
2105
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "(").WithArguments("Overloadable operator expected", "1037").WithLocation(3, 29)
2291
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "checked").WithArguments("Feature 'checked user-defined operators' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").WithLocation(3, 29)
2302
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "checked").WithArguments("Feature 'checked user-defined operators' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").WithLocation(3, 29),
2305
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "}}}").WithArguments("Feature 'unsigned right shift' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").WithLocation(3, 37),
2385
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "checked").WithArguments("Feature 'checked user-defined operators' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").WithLocation(3, 29)
2396
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "checked").WithArguments("Feature 'checked user-defined operators' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").WithLocation(3, 29),
2399
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "}}}").WithArguments("Feature 'unsigned right shift' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").WithLocation(3, 37),
2865
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "checked").WithArguments("Feature 'checked user-defined operators' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").WithLocation(3, 38),
3031
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "checked").WithArguments("Feature 'checked user-defined operators' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").WithLocation(3, 38),
3265
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "checked").WithArguments("Feature 'checked user-defined operators' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").WithLocation(3, 38)
3315
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "checked").WithArguments("Feature 'checked user-defined operators' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").WithLocation(3, 38)
Symbols\UnsignedRightShiftTests.cs (4)
2717
Diagnostic(ErrorCode.
WRN_ErrorOverride
, ">>>").WithArguments("Feature 'unsigned right shift' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").WithLocation(3, 29),
2818
Diagnostic(ErrorCode.
WRN_ErrorOverride
, " >>>").WithArguments("Overloadable operator expected", "1037").WithLocation(3, 28)
2889
Diagnostic(ErrorCode.
WRN_ErrorOverride
, ">>>").WithArguments("Feature 'unsigned right shift' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").WithLocation(3, 29),
2990
Diagnostic(ErrorCode.
WRN_ErrorOverride
, " >>>").WithArguments("Overloadable operator expected", "1037").WithLocation(3, 28)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
LexicalAndXml\PreprocessorTests.cs (1)
3753
VerifyErrorSpecial(node, new DirectiveInfo { Number = (int)ErrorCode.
WRN_ErrorOverride
, Status = NodeStatus.IsWarning });
Parsing\ParserErrorMessageTests.cs (3)
6453
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "{").WithArguments("Feature 'generics' is not available in C# 1. Please use language version 2 or greater.", "8022"));
6472
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "Alias").WithArguments("Feature 'namespace alias qualifier' is not available in C# 1. Please use language version 2 or greater.", "8022"),
6478
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "global").WithArguments("Feature 'namespace alias qualifier' is not available in C# 1. Please use language version 2 or greater.", "8022"));