10 references to SwitchExpression
Microsoft.CodeAnalysis.CSharp (10)
Binder\Binder_Conversions.cs (1)
159
if (conversion.Kind == ConversionKind.
SwitchExpression
)
Binder\Semantics\Conversions\Conversion.cs (2)
366
return new Conversion(ConversionKind.
SwitchExpression
, innerConversions);
724
return Kind == ConversionKind.
SwitchExpression
;
Binder\Semantics\Conversions\ConversionKindExtensions.cs (1)
47
case
SwitchExpression
:
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (1)
622
case ConversionKind.
SwitchExpression
:
Compilation\CSharpSemanticModel.cs (1)
2131
if (highestBoundExpr is BoundConversion { ConversionKind: ConversionKind.
SwitchExpression
, Conversion: var convertedSwitchConversion })
FlowAnalysis\NullableWalker.cs (2)
2057
case ConversionKind.ConditionalExpression or ConversionKind.
SwitchExpression
or ConversionKind.ObjectCreation when
8904
case ConversionKind.
SwitchExpression
:
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
37
case ConversionKind.
SwitchExpression
:
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (1)
233
case ConversionKind.
SwitchExpression
: // a switch expression must have its arms converted