145 references to WRN_SwitchExpressionNotExhaustive
Microsoft.CodeAnalysis.CSharp (4)
Binder\SwitchExpressionBinder.cs (1)
110
ErrorCode.
WRN_SwitchExpressionNotExhaustive
;
Errors\ErrorFacts.cs (2)
462
case ErrorCode.
WRN_SwitchExpressionNotExhaustive
:
1926
or ErrorCode.
WRN_SwitchExpressionNotExhaustive
Generated\ErrorFacts.Generated.cs (1)
186
case ErrorCode.
WRN_SwitchExpressionNotExhaustive
:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\PatternTests.cs (2)
3320
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("0").WithLocation(9, 38)
3348
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("0").WithLocation(9, 38)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (3)
Emit\NumericIntPtrTests.cs (3)
10768
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("> (nint)int.MaxValue").WithLocation(3, 7),
10771
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("< (nint)int.MinValue").WithLocation(8, 7),
10774
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("> (nuint)uint.MaxValue").WithLocation(14, 7)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (129)
Semantics\PatternMatchingTests_ListPatterns.cs (39)
5116
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("[not null]").WithLocation(27, 7),
5125
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("[not null]").WithLocation(49, 7),
5137
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("{ Length: 0 }").WithLocation(80, 7),
5216
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("[.. not null, _]").WithLocation(27, 18)
5254
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("_").WithLocation(12, 18)
5355
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("_").WithLocation(27, 18),
5358
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("_").WithLocation(33, 18),
5900
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("{ Count: 2 }").WithLocation(2, 13),
5903
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("{ Count: 1 }").WithLocation(9, 13),
5906
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("{ Count: 1 }").WithLocation(16, 13),
5916
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("{ Count: 2 }").WithLocation(2, 13),
5925
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("{ Count: 1 }").WithLocation(9, 13),
5934
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("{ Count: 1 }").WithLocation(16, 13),
5993
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("{ Count: 0 }").WithLocation(2, 13),
5996
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("[0]").WithLocation(8, 13),
6084
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("[_, 0]").WithLocation(2, 13)
6108
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("[0, _]").WithLocation(2, 13)
6147
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("[0]").WithLocation(2, 13),
6150
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("[_, _, 0]").WithLocation(9, 13),
6153
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("[1, _, 0]").WithLocation(16, 13)
6177
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("{ Length: 0 }").WithLocation(2, 13)
6257
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("_").WithLocation(2, 13)
7678
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("_").WithLocation(7, 7),
7684
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("{ Length: 0 }").WithLocation(12, 7),
7687
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("{ Length: 0 }").WithLocation(17, 7),
7690
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("{ Length: 0 }").WithLocation(22, 7),
7717
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("not null").WithLocation(5, 7),
7771
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("_").WithLocation(5, 7),
7999
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("{ Length: 2, Count: 0 }").WithLocation(2, 13)
9153
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("{ Length: 1000 }").WithLocation(2, 7));
9198
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("{ Count: 1 }").WithLocation(13, 18)
9242
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("{ Count: 1 }").WithLocation(13, 18)
9266
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("{ Count: 1 }").WithLocation(4, 43),
9291
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("{ Count: 1 }").WithLocation(4, 34),
9338
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("{ Count: 1 }").WithLocation(13, 18)
9402
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("{ Count: 1 }").WithLocation(13, 18)
9445
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("{ Count: 1 }").WithLocation(13, 18)
9488
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("{ Count: -1 }").WithLocation(13, 18)
9531
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("_").WithLocation(13, 18)
Semantics\PatternMatchingTests2.cs (2)
618
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("_").WithLocation(5, 19),
642
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("3").WithLocation(5, 19)
Semantics\PatternMatchingTests3.cs (55)
1629
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("1").WithLocation(5, 41),
1650
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("1").WithLocation(5, 41),
2473
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("0").WithLocation(14, 15),
2921
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("E.Five").WithLocation(15, 28)
2978
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("E.Five").WithLocation(15, 28)
5532
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("0").WithLocation(7, 21),
5535
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("0").WithLocation(15, 17)
5559
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("Color.Greed").WithLocation(4, 33)
5581
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("Color.Blue").WithLocation(4, 33)
5721
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("(false, false)").WithLocation(4, 37)
5752
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("(not null, _)").WithLocation(11, 20),
5755
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("(not null, not null)").WithLocation(12, 20),
5787
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("> (nint)int.MaxValue").WithLocation(4, 25),
5790
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("< (nint)int.MinValue").WithLocation(5, 25),
5793
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("> (nuint)uint.MaxValue").WithLocation(6, 26)
5816
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("float.NaN").WithLocation(4, 26),
5819
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("float.NegativeInfinity").WithLocation(5, 26),
5822
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("float.PositiveInfinity").WithLocation(6, 26),
5825
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("double.NaN").WithLocation(7, 27),
5828
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("double.NegativeInfinity").WithLocation(8, 27),
5831
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("double.PositiveInfinity").WithLocation(9, 27)
5849
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("\"B\"").WithLocation(4, 27)
6856
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("Q(1, 2.5D)").WithLocation(4, 27),
6859
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("Q(1L, 2.5F)").WithLocation(5, 27),
6862
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("Q((byte)1, (short)2)").WithLocation(6, 27),
6865
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("Q(1U, 2UL)").WithLocation(7, 27),
6868
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("Q(1L, (sbyte)2)").WithLocation(8, 27)
6897
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("I").WithLocation(4, 27),
6900
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("Q(1, 2.5D) and (3, 4, 5) { P1: 1, P2: 2 }").WithLocation(5, 27)
6925
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("not null").WithLocation(5, 23)
6949
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("(1, 2)").WithLocation(4, 35),
6952
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("(1, 2)").WithLocation(5, 35),
6958
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("not null").WithLocation(7, 36)
6982
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("{ P1: 10 }").WithLocation(4, 22),
6985
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("{ P1: -100 }").WithLocation(5, 22)
7009
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("{ P1: 10 }").WithLocation(4, 22),
7012
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("{ P1: -100 }").WithLocation(5, 22)
7034
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("Q").WithLocation(4, 27),
7037
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("Q").WithLocation(5, 27),
7040
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("W").WithLocation(6, 27)
7063
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("(1) { }").WithLocation(4, 22),
7066
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("(1) { }").WithLocation(5, 43)
7093
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("(false, true, false, true)").WithLocation(4, 44)
7120
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("_").WithLocation(4, 26)
7154
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("{ A: false, B: true, C: false, D: true }").WithLocation(4, 21)
7188
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("{ A: false, D: true, B: true, C: false }").WithLocation(4, 21)
7221
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments(@"(0, ""A"")").WithLocation(4, 21)
7245
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("(1) { } and (2, 3)").WithLocation(4, 22),
7248
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("(2, 3) and (1) { }").WithLocation(5, 22)
7269
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments(@"""0""").WithLocation(3, 33)
7292
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments(@"""20""").WithLocation(3, 33)
7311
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("{ Length: 1 }").WithLocation(3, 33)
7357
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("{ x: 1, y: 2, Extra: 3 }").WithLocation(3, 41)
7455
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("_").WithLocation(14, 31));
7490
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("1").WithLocation(14, 31));
Semantics\PatternMatchingTests4.cs (16)
1805
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("(true, false)").WithLocation(6, 25)
2086
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("(0, _)").WithLocation(9, 19)
2222
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("(0, _)").WithLocation(9, 19)
2227
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("(0, _)").WithLocation(9, 19)
2377
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("(0, _)").WithLocation(9, 19)
2422
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("(0, _)").WithLocation(8, 24)
2427
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("(0, _)").WithLocation(8, 24)
2576
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("(0, _)").WithLocation(9, 19)
2617
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("(0, _)").WithLocation(9, 19)
2625
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("(0, _)").WithLocation(9, 19)
3216
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("((0, _), _)").WithLocation(7, 32)
3292
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("not null").WithLocation(6, 15)
3331
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("false").WithLocation(22, 18)
3570
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("(0, _)").WithLocation(17, 23)
3706
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("(0, _, _, _, _, _, _, _, _)").WithLocation(17, 44)
8158
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("0").WithLocation(8, 7),
Semantics\PatternMatchingTests5.cs (17)
722
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("{ BProp: { BoolProp: false } }").WithLocation(6, 15),
725
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("{ BProp: { IntProp: 1 } }").WithLocation(11, 15)
1919
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("{ Prop: { True: false } }").WithLocation(2, 13),
1925
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("{ Prop: { Prop: not null } }").WithLocation(14, 13)
2653
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("(Enum.One, Enum.One)").WithLocation(12, 25)
2880
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("(Enum.One, Enum.One, \"A\")").WithLocation(29, 28),
2892
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("(Enum.One, Enum.One, _)").WithLocation(87, 28)
3052
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("(Enum.One, Enum.One, false)").WithLocation(60, 21),
3055
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("(Enum.One, Enum.One, _)").WithLocation(76, 21),
3058
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("(Enum.One, Enum.One, _)").WithLocation(90, 21),
3061
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("(Enum.One, Enum.One, _)").WithLocation(105, 21),
3072
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("(Enum.One, Enum.One, false)").WithLocation(60, 21),
3075
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("(Enum.One, Enum.One, _)").WithLocation(76, 21),
3078
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("(Enum.One, Enum.One, _)").WithLocation(90, 21),
3081
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("(Enum.One, Enum.One, _)").WithLocation(105, 21),
3140
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("(Enum.One, Enum.One, false)").WithLocation(12, 28),
3151
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("(Enum.One, Enum.One, false)").WithLocation(12, 28)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
IOperation\IOperationTests_ISwitchExpression.cs (1)
147
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("_").WithLocation(7, 25)
IOperation\IOperationTests_ISwitchOperation.cs (1)
3346
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("_").WithLocation(6, 19),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\InterpolationTests.cs (1)
19592
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("0").WithLocation(8, 3)
Semantics\LambdaTests.cs (1)
4754
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("_").WithLocation(5, 27));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Diagnostics\DiagnosticTest.cs (1)
282
case ErrorCode.
WRN_SwitchExpressionNotExhaustive
:
Parsing\PatternParsingTests.cs (1)
2456
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("_").WithLocation(1, 32),
Parsing\StatementAttributeParsingTests.cs (1)
6283
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustive
, "switch").WithArguments("_").WithLocation(6, 14),