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