13 references to WRN_SwitchExpressionNotExhaustiveWithWhen
Microsoft.CodeAnalysis.CSharp (4)
Binder\SwitchExpressionBinder.cs (1)
98
requiresFalseWhenClause ? ErrorCode.
WRN_SwitchExpressionNotExhaustiveWithWhen
:
Errors\ErrorFacts.cs (2)
496
case ErrorCode.
WRN_SwitchExpressionNotExhaustiveWithWhen
:
2102
or ErrorCode.
WRN_SwitchExpressionNotExhaustiveWithWhen
Generated\ErrorFacts.Generated.cs (1)
254
case ErrorCode.
WRN_SwitchExpressionNotExhaustiveWithWhen
:
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Semantics\PatternMatchingTests2.cs (1)
716
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustiveWithWhen
, "switch").WithArguments("_").WithLocation(7, 19)
Semantics\PatternMatchingTests3.cs (1)
7394
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustiveWithWhen
, "switch").WithArguments("(false, true, false, true)").WithLocation(4, 44)
Semantics\PatternMatchingTests5.cs (1)
2687
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustiveWithWhen
, "switch").WithArguments("(Enum.One, Enum.One)").WithLocation(12, 25)
Semantics\PatternSwitchTests.cs (3)
3443
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustiveWithWhen
, "switch").WithArguments("0").WithLocation(5, 15)
3468
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustiveWithWhen
, "switch").WithArguments("0").WithLocation(5, 15)
3495
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustiveWithWhen
, "switch").WithArguments("0").WithLocation(5, 15)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_ISwitchExpression.cs (1)
579
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustiveWithWhen
, "switch").WithArguments("0").WithLocation(7, 25)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Diagnostics\DiagnosticTest.cs (2)
288
case ErrorCode.
WRN_SwitchExpressionNotExhaustiveWithWhen
:
527
ErrorCode.
WRN_SwitchExpressionNotExhaustiveWithWhen
,