40 references to ERR_SwitchFallOut
Microsoft.CodeAnalysis.CSharp (2)
Microsoft.CodeAnalysis.CSharp.CSharp15.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (13)
Semantics\PatternSwitchTests.cs (10)
139Diagnostic(ErrorCode.ERR_SwitchFallOut, "case null:").WithArguments("case null:").WithLocation(11, 13)
3233Diagnostic(ErrorCode.ERR_SwitchFallOut, @"case
3602Diagnostic(ErrorCode.ERR_SwitchFallOut, "case (System.IntPtr)2:").WithArguments("case (System.IntPtr)2:").WithLocation(11, 13)
3700Diagnostic(ErrorCode.ERR_SwitchFallOut, "case (System.UIntPtr)2:").WithArguments("case (System.UIntPtr)2:").WithLocation(11, 13)
3795Diagnostic(ErrorCode.ERR_SwitchFallOut, "case (nint)2:").WithArguments("case (nint)2:").WithLocation(11, 13)
3842Diagnostic(ErrorCode.ERR_SwitchFallOut, "case (System.IntPtr)2:").WithArguments("case (System.IntPtr)2:").WithLocation(11, 13)
3889Diagnostic(ErrorCode.ERR_SwitchFallOut, "case (System.IntPtr)2:").WithArguments("case (System.IntPtr)2:").WithLocation(11, 13)
3933Diagnostic(ErrorCode.ERR_SwitchFallOut, "case (nuint)2:").WithArguments("case (nuint)2:").WithLocation(11, 13)
3980Diagnostic(ErrorCode.ERR_SwitchFallOut, "case (System.UIntPtr)2:").WithArguments("case (System.UIntPtr)2:").WithLocation(11, 13)
4027Diagnostic(ErrorCode.ERR_SwitchFallOut, "case (System.UIntPtr)2:").WithArguments("case (System.UIntPtr)2:").WithLocation(11, 13)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (13)
Semantics\SwitchTests.cs (12)
2270Diagnostic(ErrorCode.ERR_SwitchFallOut, "default:").WithArguments("default:").WithLocation(14, 13)
2275Diagnostic(ErrorCode.ERR_SwitchFallOut, "default:").WithArguments("default:").WithLocation(14, 13)
2307Diagnostic(ErrorCode.ERR_SwitchFallOut, "case 11:").WithArguments("case 11:").WithLocation(15, 17)
2312Diagnostic(ErrorCode.ERR_SwitchFallOut, "case 11:").WithArguments("case 11:").WithLocation(15, 17)
2362Diagnostic(ErrorCode.ERR_SwitchFallOut, "case 11:").WithArguments("case 11:").WithLocation(15, 17),
2365Diagnostic(ErrorCode.ERR_SwitchFallOut, "case 5:").WithArguments("case 5:").WithLocation(24, 17),
2368Diagnostic(ErrorCode.ERR_SwitchFallOut, "default:").WithArguments("default:").WithLocation(32, 17)
2373Diagnostic(ErrorCode.ERR_SwitchFallOut, "case 11:").WithArguments("case 11:").WithLocation(15, 17),
2376Diagnostic(ErrorCode.ERR_SwitchFallOut, "case 5:").WithArguments("case 5:").WithLocation(24, 17),
2379Diagnostic(ErrorCode.ERR_SwitchFallOut, "default:").WithArguments("default:").WithLocation(32, 17)
2789Diagnostic(ErrorCode.ERR_SwitchFallOut, "case 5:").WithArguments("case 5:").WithLocation(10, 13)
2800Diagnostic(ErrorCode.ERR_SwitchFallOut, "case 5:").WithArguments("case 5:").WithLocation(10, 13)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (8)
Parsing\PatternParsingTests.cs (8)
1852Diagnostic(ErrorCode.ERR_SwitchFallOut, "case (x: ((3))):").WithArguments("case (x: ((3))):").WithLocation(1, 35),
1862Diagnostic(ErrorCode.ERR_SwitchFallOut, "case (x: ((3))):").WithArguments("case (x: ((3))):").WithLocation(1, 35));
1948Diagnostic(ErrorCode.ERR_SwitchFallOut, "case (((x: 3))):").WithArguments("case (((x: 3))):").WithLocation(1, 35),
2036Diagnostic(ErrorCode.ERR_SwitchFallOut, "case T(X: 3, Y: 4){L: 5} p:").WithArguments("case T(X: 3, Y: 4){L: 5} p:").WithLocation(1, 35),
2160Diagnostic(ErrorCode.ERR_SwitchFallOut, "case (:").WithArguments("case (:").WithLocation(1, 35),
2219Diagnostic(ErrorCode.ERR_SwitchFallOut, "case ( ").WithArguments("case ( ").WithLocation(1, 35),
2288Diagnostic(ErrorCode.ERR_SwitchFallOut, "case ():").WithArguments("case ():").WithLocation(1, 35),
2379Diagnostic(ErrorCode.ERR_SwitchFallOut, "case (x: ):").WithArguments("case (x: ):").WithLocation(1, 35),