38 references to ERR_SwitchFallOut
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1701
or ErrorCode.
ERR_SwitchFallOut
FlowAnalysis\ControlFlowPass.cs (1)
380
Diagnostics.Add(isLastSection ? ErrorCode.
ERR_SwitchFallOut
: ErrorCode.ERR_SwitchFallThrough,
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (13)
FlowAnalysis\FlowDiagnosticTests.cs (1)
2616
Diagnostic(ErrorCode.
ERR_SwitchFallOut
, "case 1:").WithArguments("case 1:").WithLocation(8, 9),
Semantics\PatternMatchingTests3.cs (1)
5100
Diagnostic(ErrorCode.
ERR_SwitchFallOut
, "case long l when l != 0:").WithArguments("case long l when l != 0:").WithLocation(14, 13)
Semantics\PatternSwitchTests.cs (10)
139
Diagnostic(ErrorCode.
ERR_SwitchFallOut
, "case null:").WithArguments("case null:").WithLocation(11, 13)
3233
Diagnostic(ErrorCode.
ERR_SwitchFallOut
, @"case
3602
Diagnostic(ErrorCode.
ERR_SwitchFallOut
, "case (System.IntPtr)2:").WithArguments("case (System.IntPtr)2:").WithLocation(11, 13)
3700
Diagnostic(ErrorCode.
ERR_SwitchFallOut
, "case (System.UIntPtr)2:").WithArguments("case (System.UIntPtr)2:").WithLocation(11, 13)
3795
Diagnostic(ErrorCode.
ERR_SwitchFallOut
, "case (nint)2:").WithArguments("case (nint)2:").WithLocation(11, 13)
3842
Diagnostic(ErrorCode.
ERR_SwitchFallOut
, "case (System.IntPtr)2:").WithArguments("case (System.IntPtr)2:").WithLocation(11, 13)
3889
Diagnostic(ErrorCode.
ERR_SwitchFallOut
, "case (System.IntPtr)2:").WithArguments("case (System.IntPtr)2:").WithLocation(11, 13)
3933
Diagnostic(ErrorCode.
ERR_SwitchFallOut
, "case (nuint)2:").WithArguments("case (nuint)2:").WithLocation(11, 13)
3980
Diagnostic(ErrorCode.
ERR_SwitchFallOut
, "case (System.UIntPtr)2:").WithArguments("case (System.UIntPtr)2:").WithLocation(11, 13)
4027
Diagnostic(ErrorCode.
ERR_SwitchFallOut
, "case (System.UIntPtr)2:").WithArguments("case (System.UIntPtr)2:").WithLocation(11, 13)
Semantics\PrimaryConstructorTests.cs (1)
9663
Diagnostic(ErrorCode.
ERR_SwitchFallOut
, "case 2:").WithArguments("case 2:").WithLocation(10, 13),
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
IOperation\IOperationTests_ISwitchOperation.cs (2)
1048
Diagnostic(ErrorCode.
ERR_SwitchFallOut
, "case 1:").WithArguments("case 1:").WithLocation(8, 13)
1555
Diagnostic(ErrorCode.
ERR_SwitchFallOut
, "case 1:").WithArguments("case 1:").WithLocation(6, 13)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (13)
Semantics\SemanticErrorTests.cs (1)
5300
Diagnostic(ErrorCode.
ERR_SwitchFallOut
, "case 23:").WithArguments("case 23:"));
Semantics\SwitchTests.cs (12)
2270
Diagnostic(ErrorCode.
ERR_SwitchFallOut
, "default:").WithArguments("default:").WithLocation(14, 13)
2275
Diagnostic(ErrorCode.
ERR_SwitchFallOut
, "default:").WithArguments("default:").WithLocation(14, 13)
2307
Diagnostic(ErrorCode.
ERR_SwitchFallOut
, "case 11:").WithArguments("case 11:").WithLocation(15, 17)
2312
Diagnostic(ErrorCode.
ERR_SwitchFallOut
, "case 11:").WithArguments("case 11:").WithLocation(15, 17)
2362
Diagnostic(ErrorCode.
ERR_SwitchFallOut
, "case 11:").WithArguments("case 11:").WithLocation(15, 17),
2365
Diagnostic(ErrorCode.
ERR_SwitchFallOut
, "case 5:").WithArguments("case 5:").WithLocation(24, 17),
2368
Diagnostic(ErrorCode.
ERR_SwitchFallOut
, "default:").WithArguments("default:").WithLocation(32, 17)
2373
Diagnostic(ErrorCode.
ERR_SwitchFallOut
, "case 11:").WithArguments("case 11:").WithLocation(15, 17),
2376
Diagnostic(ErrorCode.
ERR_SwitchFallOut
, "case 5:").WithArguments("case 5:").WithLocation(24, 17),
2379
Diagnostic(ErrorCode.
ERR_SwitchFallOut
, "default:").WithArguments("default:").WithLocation(32, 17)
2789
Diagnostic(ErrorCode.
ERR_SwitchFallOut
, "case 5:").WithArguments("case 5:").WithLocation(10, 13)
2800
Diagnostic(ErrorCode.
ERR_SwitchFallOut
, "case 5:").WithArguments("case 5:").WithLocation(10, 13)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (8)
Parsing\PatternParsingTests.cs (8)
1852
Diagnostic(ErrorCode.
ERR_SwitchFallOut
, "case (x: ((3))):").WithArguments("case (x: ((3))):").WithLocation(1, 35),
1862
Diagnostic(ErrorCode.
ERR_SwitchFallOut
, "case (x: ((3))):").WithArguments("case (x: ((3))):").WithLocation(1, 35));
1948
Diagnostic(ErrorCode.
ERR_SwitchFallOut
, "case (((x: 3))):").WithArguments("case (((x: 3))):").WithLocation(1, 35),
2036
Diagnostic(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),
2160
Diagnostic(ErrorCode.
ERR_SwitchFallOut
, "case (:").WithArguments("case (:").WithLocation(1, 35),
2219
Diagnostic(ErrorCode.
ERR_SwitchFallOut
, "case ( ").WithArguments("case ( ").WithLocation(1, 35),
2288
Diagnostic(ErrorCode.
ERR_SwitchFallOut
, "case ():").WithArguments("case ():").WithLocation(1, 35),
2379
Diagnostic(ErrorCode.
ERR_SwitchFallOut
, "case (x: ):").WithArguments("case (x: ):").WithLocation(1, 35),