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