1 write to DefaultBody
System.Linq.Expressions (1)
System\Linq\Expressions\SwitchExpression.cs (1)
22DefaultBody = defaultBody;
24 references to DefaultBody
System.Linq.Expressions (24)
System\Linq\Expressions\Compiler\LambdaCompiler.ControlFlow.cs (1)
200DefineBlockLabels(@switch.DefaultBody);
System\Linq\Expressions\Compiler\LambdaCompiler.Statements.cs (8)
171if (node.DefaultBody != null) 173EmitExpressionAsType(node.DefaultBody, node.Type, flags); 229Label @default = (node.DefaultBody == null) ? end : _ilg.DefineLabel(); 433Label @default = (node.DefaultBody == null) ? end : _ilg.DefineLabel(); 504if (node.DefaultBody != null || i < n - 1) 520if (node.DefaultBody != null) 523EmitExpressionAsType(node.DefaultBody, node.Type, flags); 744Expression.Switch(node.Type, switchIndex, node.DefaultBody, null, cases.ToReadOnly())
System\Linq\Expressions\Compiler\StackSpiller.cs (1)
934Result defaultBody = RewriteExpression(node.DefaultBody, stack);
System\Linq\Expressions\DebugViewWriter.cs (2)
1054if (node.DefaultBody != null) 1058Visit(node.DefaultBody);
System\Linq\Expressions\Expression.DebuggerProxy.cs (1)
429public Expression? DefaultBody => _node.DefaultBody;
System\Linq\Expressions\ExpressionVisitor.cs (1)
489Visit(node.DefaultBody)
System\Linq\Expressions\Interpreter\LightCompiler.cs (8)
1540if (node.DefaultBody != null) 1542Compile(node.DefaultBody); 1623CompileLabelExpression(Expression.Label(doneLabel, node.DefaultBody)); 1638if (node.DefaultBody != null) 1640Compile(node.DefaultBody, !hasValue); 1682if (node.DefaultBody != null) 1684Compile(node.DefaultBody, !hasValue); 1873DefineBlockLabels(@switch.DefaultBody);
System\Linq\Expressions\SwitchExpression.cs (2)
88/// <param name="defaultBody">The <see cref="DefaultBody"/> property of the result.</param> 92if (switchValue == SwitchValue && defaultBody == DefaultBody && cases != null)