38 references to WRN_FieldIsAmbiguous
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Expressions.cs (1)
1452
diagnostics.Add(ErrorCode.
WRN_FieldIsAmbiguous
, node, Compilation.LanguageVersion.ToDisplayString());
Errors\ErrorFacts.cs (2)
570
case ErrorCode.
WRN_FieldIsAmbiguous
:
2472
or ErrorCode.
WRN_FieldIsAmbiguous
Generated\ErrorFacts.Generated.cs (1)
342
case ErrorCode.
WRN_FieldIsAmbiguous
:
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
FieldKeywordTests.cs (2)
1325
Diagnostic(ErrorCode.
WRN_FieldIsAmbiguous
, "field").WithArguments("preview").WithLocation(14, 20),
10327
Diagnostic(ErrorCode.
WRN_FieldIsAmbiguous
, "field").WithArguments("14.0").WithLocation(6, 50),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (32)
Diagnostics\DiagnosticTest.cs (1)
437
case ErrorCode.
WRN_FieldIsAmbiguous
:
Syntax\FieldAndValueKeywordTests.cs (31)
49
Diagnostic(ErrorCode.
WRN_FieldIsAmbiguous
, "field").WithArguments(languageVersion.ToDisplayString()).WithLocation(4, 28),
52
Diagnostic(ErrorCode.
WRN_FieldIsAmbiguous
, "field").WithArguments(languageVersion.ToDisplayString()).WithLocation(5, 34),
55
Diagnostic(ErrorCode.
WRN_FieldIsAmbiguous
, "field").WithArguments(languageVersion.ToDisplayString()).WithLocation(6, 40),
58
Diagnostic(ErrorCode.
WRN_FieldIsAmbiguous
, "field").WithArguments(languageVersion.ToDisplayString()).WithLocation(7, 33));
143
Diagnostic(ErrorCode.
WRN_FieldIsAmbiguous
, "field").WithArguments(languageVersion.ToDisplayString()).WithLocation(10, 25),
146
Diagnostic(ErrorCode.
WRN_FieldIsAmbiguous
, "field").WithArguments(languageVersion.ToDisplayString()).WithLocation(10, 42));
264
Diagnostic(ErrorCode.
WRN_FieldIsAmbiguous
, "field").WithArguments(languageVersion.ToDisplayString()).WithLocation(6, 33));
292
Diagnostic(ErrorCode.
WRN_FieldIsAmbiguous
, "field").WithArguments(languageVersion.ToDisplayString()).WithLocation(5, 29));
339
Diagnostic(ErrorCode.
WRN_FieldIsAmbiguous
, "field").WithArguments(languageVersion.ToDisplayString()).WithLocation(4, 59));
369
Diagnostic(ErrorCode.
WRN_FieldIsAmbiguous
, "field").WithArguments(languageVersion.ToDisplayString()).WithLocation(4, 69));
399
Diagnostic(ErrorCode.
WRN_FieldIsAmbiguous
, "field").WithArguments(languageVersion.ToDisplayString()).WithLocation(4, 85));
429
Diagnostic(ErrorCode.
WRN_FieldIsAmbiguous
, "field").WithArguments(languageVersion.ToDisplayString()).WithLocation(4, 101));
459
Diagnostic(ErrorCode.
WRN_FieldIsAmbiguous
, "field").WithArguments(languageVersion.ToDisplayString()).WithLocation(4, 75));
762
Diagnostic(ErrorCode.
WRN_FieldIsAmbiguous
, "field").WithArguments(languageVersion.ToDisplayString()).WithLocation(4, 50));
826
Diagnostic(ErrorCode.
WRN_FieldIsAmbiguous
, "field").WithArguments(languageVersion.ToDisplayString()).WithLocation(11, 14));
912
Diagnostic(ErrorCode.
WRN_FieldIsAmbiguous
, "field").WithArguments(languageVersion.ToDisplayString()).WithLocation(13, 17));
956
Diagnostic(ErrorCode.
WRN_FieldIsAmbiguous
, "field").WithArguments(languageVersion.ToDisplayString()).WithLocation(9, 20));
994
Diagnostic(ErrorCode.
WRN_FieldIsAmbiguous
, "field").WithArguments(languageVersion.ToDisplayString()).WithLocation(11, 23));
1030
Diagnostic(ErrorCode.
WRN_FieldIsAmbiguous
, "field").WithArguments(languageVersion.ToDisplayString()).WithLocation(9, 28));
1069
Diagnostic(ErrorCode.
WRN_FieldIsAmbiguous
, "field").WithArguments(languageVersion.ToDisplayString()).WithLocation(10, 50));
1108
Diagnostic(ErrorCode.
WRN_FieldIsAmbiguous
, "field").WithArguments(languageVersion.ToDisplayString()).WithLocation(11, 27));
1215
Diagnostic(ErrorCode.
WRN_FieldIsAmbiguous
, "field").WithArguments(languageVersion.ToDisplayString()).WithLocation(8, 52));
1252
Diagnostic(ErrorCode.
WRN_FieldIsAmbiguous
, "field").WithArguments(languageVersion.ToDisplayString()).WithLocation(9, 41));
1308
Diagnostic(ErrorCode.
WRN_FieldIsAmbiguous
, "field").WithArguments(languageVersion.ToDisplayString()).WithLocation(9, 36),
1354
Diagnostic(ErrorCode.
WRN_FieldIsAmbiguous
, "field").WithArguments(languageVersion.ToDisplayString()).WithLocation(12, 19),
1360
Diagnostic(ErrorCode.
WRN_FieldIsAmbiguous
, "field").WithArguments(languageVersion.ToDisplayString()).WithLocation(13, 19),
1407
Diagnostic(ErrorCode.
WRN_FieldIsAmbiguous
, "field").WithArguments(languageVersion.ToDisplayString()).WithLocation(13, 23),
1474
Diagnostic(ErrorCode.
WRN_FieldIsAmbiguous
, "field").WithArguments(languageVersion.ToDisplayString()).WithLocation(4, 24),
1514
Diagnostic(ErrorCode.
WRN_FieldIsAmbiguous
, "field").WithArguments(languageVersion.ToDisplayString()).WithLocation(3, 17));
1607
Diagnostic(ErrorCode.
WRN_FieldIsAmbiguous
, "field").WithArguments(languageVersion.ToDisplayString()).WithLocation(5, 25),
1610
Diagnostic(ErrorCode.
WRN_FieldIsAmbiguous
, "field").WithArguments(languageVersion.ToDisplayString()).WithLocation(6, 25));