11 references to IsValidV6SwitchGoverningType
Microsoft.CodeAnalysis.CSharp (11)
Binder\Semantics\Conversions\ConversionsBase.cs (2)
1734
Debug.Assert(!sourceType.
IsValidV6SwitchGoverningType
());
1743
Debug.Assert(switchGoverningType.
IsValidV6SwitchGoverningType
(isTargetTypeOfUserDefinedOp: true));
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (2)
902
Debug.Assert(!source.
IsValidV6SwitchGoverningType
());
968
int? best = MostSpecificConversionOperator(conv => conv.ToType.
IsValidV6SwitchGoverningType
(isTargetTypeOfUserDefinedOp: true), u);
Binder\SwitchBinder.cs (2)
395
if (switchGoverningType.
IsValidV6SwitchGoverningType
())
420
Debug.Assert(resultantGoverningType.
IsValidV6SwitchGoverningType
(isTargetTypeOfUserDefinedOp: true));
CodeGen\EmitStatement.cs (2)
1233
Debug.Assert(dispatch.Expression.Type.
IsValidV6SwitchGoverningType
() || dispatch.Expression.Type.IsSpanOrReadOnlySpanChar());
1256
(expression.Type.
IsValidV6SwitchGoverningType
() || expression.Type.IsSpanOrReadOnlySpanChar()));
FlowAnalysis\AbstractFlowPass_Switch.cs (1)
101
if (!node.Expression.Type.
IsValidV6SwitchGoverningType
())
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
746
if (input.Type.
IsValidV6SwitchGoverningType
() || input.Type.IsSpanOrReadOnlySpanChar())
Operations\CSharpOperationFactory.cs (1)
2759
cp.InputType.
IsValidV6SwitchGoverningType
())