15 references to WRN_SwitchExpressionNotExhaustiveWithUnnamedEnumValue
Microsoft.CodeAnalysis.CSharp (4)
Binder\SwitchExpressionBinder.cs (1)
99
unnamedEnumValue ? ErrorCode.
WRN_SwitchExpressionNotExhaustiveWithUnnamedEnumValue
:
Errors\ErrorFacts.cs (2)
467
case ErrorCode.
WRN_SwitchExpressionNotExhaustiveWithUnnamedEnumValue
:
1941
or ErrorCode.
WRN_SwitchExpressionNotExhaustiveWithUnnamedEnumValue
Generated\ErrorFacts.Generated.cs (1)
192
case ErrorCode.
WRN_SwitchExpressionNotExhaustiveWithUnnamedEnumValue
:
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (10)
Semantics\PatternMatchingTests3.cs (4)
5633
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustiveWithUnnamedEnumValue
, "switch", isSuppressed: false).WithArguments("(Color)3").WithLocation(4, 33)
5658
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustiveWithUnnamedEnumValue
, "switch", isSuppressed: false).WithArguments("(_, (Color)3)").WithLocation(4, 21)
5684
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustiveWithUnnamedEnumValue
, "switch", isSuppressed: false).WithArguments("{ Color: (Color)3 }").WithLocation(4, 21)
5708
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustiveWithUnnamedEnumValue
, "switch", isSuppressed: false).WithArguments("(_, (Color)3)").WithLocation(4, 37)
Semantics\PatternMatchingTests5.cs (6)
2725
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustiveWithUnnamedEnumValue
, "switch").WithArguments("(Enum.One, (Enum)-1, _)").WithLocation(12, 28)
2873
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustiveWithUnnamedEnumValue
, "switch").WithArguments("(Enum.Zero, (Enum)-1, not null)").WithLocation(14, 28),
2882
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustiveWithUnnamedEnumValue
, "switch").WithArguments("(Enum.Zero, (Enum)-1, not null)").WithLocation(59, 28),
2885
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustiveWithUnnamedEnumValue
, "switch").WithArguments("(Enum.Zero, (Enum)-1, \"A\")").WithLocation(73, 28),
3060
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustiveWithUnnamedEnumValue
, "switch").WithArguments("(Enum.Zero, (Enum)-1, false)").WithLocation(121, 21)
3080
Diagnostic(ErrorCode.
WRN_SwitchExpressionNotExhaustiveWithUnnamedEnumValue
, "switch").WithArguments("(Enum.Zero, (Enum)-1, false)").WithLocation(121, 21)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
289
case ErrorCode.
WRN_SwitchExpressionNotExhaustiveWithUnnamedEnumValue
: