11 references to WRN_GotoCaseShouldConvert
Microsoft.CodeAnalysis.CSharp (4)
Binder\SwitchBinder.cs (1)
266diagnostics.Add(ErrorCode.WRN_GotoCaseShouldConvert, node.Location, SwitchGoverningType);
Errors\ErrorFacts.cs (2)
305case ErrorCode.WRN_GotoCaseShouldConvert: 915or ErrorCode.WRN_GotoCaseShouldConvert
Generated\ErrorFacts.Generated.cs (1)
42case ErrorCode.WRN_GotoCaseShouldConvert:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\SwitchTests.cs (1)
7583Diagnostic(ErrorCode.WRN_GotoCaseShouldConvert, "goto case 1;").WithArguments("System.DayOfWeek"));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
Semantics\PatternSwitchTests.cs (5)
1019Diagnostic(ErrorCode.WRN_GotoCaseShouldConvert, "goto case 1;").WithArguments("Color").WithLocation(11, 17), 1025Diagnostic(ErrorCode.WRN_GotoCaseShouldConvert, "goto case 3;").WithArguments("Color").WithLocation(15, 17), 1036Diagnostic(ErrorCode.WRN_GotoCaseShouldConvert, "goto case 1;").WithArguments("Color").WithLocation(11, 17), 1042Diagnostic(ErrorCode.WRN_GotoCaseShouldConvert, "goto case 3;").WithArguments("Color").WithLocation(15, 17), 1082Diagnostic(ErrorCode.WRN_GotoCaseShouldConvert, "goto case 1;").WithArguments("Color").WithLocation(17, 17)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\SemanticErrorTests.cs (1)
20930Diagnostic(ErrorCode.WRN_GotoCaseShouldConvert, "goto case 127;").WithArguments("char").WithLocation(13, 13)