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