149 references to WRN_ErrorOverride
Microsoft.CodeAnalysis.CSharp (10)
Binder\Binder_Symbols.cs (1)
2813
diagnostics?.Add(ErrorCode.
WRN_ErrorOverride
, getLocation(data), diagInfo, (int)diagInfo.Code);
Errors\ErrorFacts.cs (2)
363
case ErrorCode.
WRN_ErrorOverride
:
1317
or ErrorCode.
WRN_ErrorOverride
Generated\ErrorFacts.Generated.cs (1)
92
case ErrorCode.
WRN_ErrorOverride
:
Parser\DocumentationCommentParser.cs (3)
796
SyntaxDiagnosticInfo crefInfo = new SyntaxDiagnosticInfo(rawInfo.Offset, rawInfo.Width, ErrorCode.
WRN_ErrorOverride
, rawInfo, rawInfo.Code);
1043
SyntaxDiagnosticInfo crefInfo = new SyntaxDiagnosticInfo(offset, width, ErrorCode.
WRN_ErrorOverride
, rawInfo, rawInfo.Code);
1378
typeSyntax = this.AddError(typeSyntax, ErrorCode.
WRN_ErrorOverride
,
Parser\Lexer.cs (1)
3997
this.AddError(ErrorCode.
WRN_ErrorOverride
, info, info.Code);
Parser\SyntaxParser.cs (2)
766
return AddError(node, ErrorCode.
WRN_ErrorOverride
, MakeError(node, code, args), (int)code);
1147
return AddError(node, ErrorCode.
WRN_ErrorOverride
, info, (int)info.Code);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
Semantics\ExtensionTests2.cs (4)
4225
Diagnostic(ErrorCode.
WRN_ErrorOverride
, ".").WithArguments(") expected", "1026").WithLocation(1, 28));
4796
Diagnostic(ErrorCode.
WRN_ErrorOverride
, @"""").WithArguments("Identifier expected", "1001").WithLocation(1, 33));
5303
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "int").WithArguments("Type parameter declaration must be an identifier not a type", "0081").WithLocation(1, 28));
5352
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "extension(string).M").WithArguments("An extension member syntax is disallowed in nested position within an extension member syntax", "9309").WithLocation(1, 33),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\SemanticErrorTests.cs (2)
21916
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "@").WithArguments("Overloadable operator expected", "1037"),
22058
Diagnostic(ErrorCode.
WRN_ErrorOverride
, @"""").WithArguments("Identifier expected", "1001"));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (96)
Compilation\CompilationAPITests.cs (1)
61
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "").WithArguments("Unexpected character '.'", "1056").WithLocation(2, 17));
DocumentationComments\CrefTests.cs (54)
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"));
6523
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "}").WithArguments("Identifier expected", "1001").WithLocation(3, 18),
6701
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "readonly").WithArguments("Feature 'ref readonly parameters' is not available in C# 11.0. Please use language version 12.0 or greater.", "9058").WithLocation(8, 26)));
6748
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "readonly").WithArguments(") expected", "1026").WithLocation(8, 22)));
6757
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "readonly").WithArguments(") expected", "1026").WithLocation(8, 22)
6799
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "readonly").WithArguments(") expected", "1026").WithLocation(8, 22)
6841
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "readonly").WithArguments("Feature 'ref readonly parameters' is not available in C# 11.0. Please use language version 12.0 or greater.", "9058").WithLocation(8, 26)));
DocumentationComments\DocumentationCommentCompilerTests.cs (3)
5508
Diagnostic(ErrorCode.
WRN_ErrorOverride
, includeElement).WithArguments("Identifier expected", "1001"),
5511
Diagnostic(ErrorCode.
WRN_ErrorOverride
, includeElement).WithArguments("Unexpected character '#'", "1056"));
5917
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)
551
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),
672
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),
723
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),
828
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "(").WithArguments("Overloadable operator expected", "1037").WithLocation(3, 37)
877
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "(").WithArguments("Overloadable operator expected", "1037").WithLocation(3, 29)
1093
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)
1143
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)
1196
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)
1245
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)
1732
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),
1839
Diagnostic(ErrorCode.
WRN_ErrorOverride
, @"""").WithArguments("Overloadable operator expected", "1037").WithLocation(3, 37)
1854
Diagnostic(ErrorCode.
WRN_ErrorOverride
, @"""").WithArguments("Overloadable operator expected", "1037").WithLocation(3, 37),
1872
Diagnostic(ErrorCode.
WRN_ErrorOverride
, @"""").WithArguments("Overloadable operator expected", "1037").WithLocation(3, 37)
1902
Diagnostic(ErrorCode.
WRN_ErrorOverride
, @"""").WithArguments("Overloadable operator expected", "1037").WithLocation(3, 29)
1964
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),
2071
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "(").WithArguments("Overloadable operator expected", "1037").WithLocation(3, 37)
2089
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "(").WithArguments("Overloadable operator expected", "1037").WithLocation(3, 37),
2130
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "(").WithArguments("Overloadable operator expected", "1037").WithLocation(3, 29)
2316
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)
2327
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),
2330
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),
2410
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)
2421
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),
2424
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),
2890
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),
3056
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),
3290
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)
3340
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 (2)
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),
2886
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),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (37)
LexicalAndXml\PreprocessorTests.cs (1)
3753
VerifyErrorSpecial(node, new DirectiveInfo { Number = (int)ErrorCode.
WRN_ErrorOverride
, Status = NodeStatus.IsWarning });
Parsing\CrefParsingTests.cs (33)
445
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "unchecked").WithArguments("Unexpected keyword 'unchecked'", "9027").WithLocation(1, 25));
513
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "unchecked").WithArguments("Unexpected keyword 'unchecked'", "9027").WithLocation(1, 25));
559
Diagnostic(ErrorCode.
WRN_ErrorOverride
, op).WithArguments("The feature 'user-defined compound assignment operators' is currently in Preview and *unsupported*. To use Preview features, use the 'preview' language version.", "8652").WithLocation(1, 25)
595
Diagnostic(ErrorCode.
WRN_ErrorOverride
, op).WithArguments("The feature 'user-defined compound assignment operators' is currently in Preview and *unsupported*. To use Preview features, use the 'preview' language version.", "8652").WithLocation(1, 33)
632
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "unchecked").WithArguments("Unexpected keyword 'unchecked'", "9027").WithLocation(1, 25),
635
Diagnostic(ErrorCode.
WRN_ErrorOverride
, op).WithArguments("The feature 'user-defined compound assignment operators' is currently in Preview and *unsupported*. To use Preview features, use the 'preview' language version.", "8652").WithLocation(1, 35)
643
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "unchecked").WithArguments("Unexpected keyword 'unchecked'", "9027").WithLocation(1, 25)
678
Diagnostic(ErrorCode.
WRN_ErrorOverride
, op).WithArguments("The feature 'user-defined compound assignment operators' is currently in Preview and *unsupported*. To use Preview features, use the 'preview' language version.", "8652").WithLocation(1, 25)
727
Diagnostic(ErrorCode.
WRN_ErrorOverride
, op).WithArguments("The feature 'user-defined compound assignment operators' is currently in Preview and *unsupported*. To use Preview features, use the 'preview' language version.", "8652").WithLocation(1, 25)
784
Diagnostic(ErrorCode.
WRN_ErrorOverride
, op).WithArguments("The feature 'user-defined compound assignment operators' is currently in Preview and *unsupported*. To use Preview features, use the 'preview' language version.", "8652").WithLocation(1, 25)
1027
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "unchecked").WithArguments("Unexpected keyword 'unchecked'", "9027").WithLocation(1, 27)
1135
Diagnostic(ErrorCode.
WRN_ErrorOverride
, op).WithArguments("The feature 'user-defined compound assignment operators' is currently in Preview and *unsupported*. To use Preview features, use the 'preview' language version.", "8652").WithLocation(1, 27)
1180
Diagnostic(ErrorCode.
WRN_ErrorOverride
, op).WithArguments("The feature 'user-defined compound assignment operators' is currently in Preview and *unsupported*. To use Preview features, use the 'preview' language version.", "8652").WithLocation(1, 35)
1226
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "unchecked").WithArguments("Unexpected keyword 'unchecked'", "9027").WithLocation(1, 27),
1229
Diagnostic(ErrorCode.
WRN_ErrorOverride
, op).WithArguments("The feature 'user-defined compound assignment operators' is currently in Preview and *unsupported*. To use Preview features, use the 'preview' language version.", "8652").WithLocation(1, 37)
1237
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "unchecked").WithArguments("Unexpected keyword 'unchecked'", "9027").WithLocation(1, 27)
1281
Diagnostic(ErrorCode.
WRN_ErrorOverride
, op).WithArguments("The feature 'user-defined compound assignment operators' is currently in Preview and *unsupported*. To use Preview features, use the 'preview' language version.", "8652").WithLocation(1, 27)
1338
Diagnostic(ErrorCode.
WRN_ErrorOverride
, op).WithArguments("The feature 'user-defined compound assignment operators' is currently in Preview and *unsupported*. To use Preview features, use the 'preview' language version.", "8652").WithLocation(1, 27)
1403
Diagnostic(ErrorCode.
WRN_ErrorOverride
, op).WithArguments("The feature 'user-defined compound assignment operators' is currently in Preview and *unsupported*. To use Preview features, use the 'preview' language version.", "8652").WithLocation(1, 27)
1772
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "unchecked").WithArguments("Unexpected keyword 'unchecked'", "9027").WithLocation(1, 25)
1907
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "unchecked").WithArguments("Unexpected keyword 'unchecked'", "9027").WithLocation(1, 34)
1988
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "unchecked").WithArguments("Unexpected keyword 'unchecked'", "9027").WithLocation(1, 34)
2076
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "unchecked").WithArguments("Unexpected keyword 'unchecked'", "9027").WithLocation(1, 36)
2180
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "unchecked").WithArguments("Unexpected keyword 'unchecked'", "9027").WithLocation(1, 36)
2474
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "readonly").WithArguments(") expected", "1026").WithLocation(1, 18));
2501
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "readonly").WithArguments(") expected", "1026").WithLocation(1, 18));
2528
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "readonly").WithArguments("'readonly' modifier must be specified after 'ref'.", "9190").WithLocation(1, 21));
2563
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "readonly").WithArguments("'readonly' modifier must be specified after 'ref'.", "9190").WithLocation(1, 22));
2598
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "readonly").WithArguments("Identifier expected; 'readonly' is a keyword", "1041").WithLocation(1, 31),
2601
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "readonly").WithArguments(") expected", "1026").WithLocation(1, 31));
2637
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "readonly").WithArguments(") expected", "1026").WithLocation(1, 18));
3802
Diagnostic(ErrorCode.
WRN_ErrorOverride
, @"""").WithArguments("Identifier expected", "1001").WithLocation(1, 36));
3981
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "extension().M").WithArguments("An extension member syntax is disallowed in nested position within an extension member syntax", "9309").WithLocation(1, 30));
Parsing\ParserErrorMessageTests.cs (3)
6292
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "{").WithArguments("Feature 'generics' is not available in C# 1. Please use language version 2 or greater.", "8022"));
6311
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "Alias").WithArguments("Feature 'namespace alias qualifier' is not available in C# 1. Please use language version 2 or greater.", "8022"),
6317
Diagnostic(ErrorCode.
WRN_ErrorOverride
, "global").WithArguments("Feature 'namespace alias qualifier' is not available in C# 1. Please use language version 2 or greater.", "8022"));