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