1 write to Comparison
System.Linq.Expressions (1)
System\Linq\Expressions\SwitchExpression.cs (1)
23
Comparison
= comparison;
17 references to Comparison
System.Linq.Expressions (17)
System\Linq\Expressions\Compiler\LambdaCompiler.Statements.cs (6)
223
EmitExpressionAndBranch(true, Expression.Equal(switchValue, testValue, false, node.
Comparison
), labels[i]);
240
if (node.
Comparison
== null)
248
Type result = node.
Comparison
.GetParametersCached()[1].ParameterType.GetNonRefType();
366
if (node.
Comparison
!= null)
638
if (node.
Comparison
!= String_op_Equality_String_String && node.
Comparison
!= String_Equals_String_String)
System\Linq\Expressions\Compiler\StackSpiller.cs (1)
945
expr = new SwitchExpression(node.Type, switchValue.Node, defaultBody.Node, node.
Comparison
, cases);
System\Linq\Expressions\Expression.DebuggerProxy.cs (1)
427
public MethodInfo? Comparison => _node.
Comparison
;
System\Linq\Expressions\ExpressionVisitor.cs (3)
677
if (before.
Comparison
== null && after.
Comparison
!= null)
679
throw Error.MustRewriteWithoutMethod(after.
Comparison
, nameof(VisitSwitch));
System\Linq\Expressions\Interpreter\LightCompiler.cs (3)
1555
if (node.
Comparison
== null)
1591
if (object.Equals(node.
Comparison
, equality))
1614
Expression.Equal(temp.Parameter, val, false, node.
Comparison
),
System\Linq\Expressions\SwitchExpression.cs (3)
74
return (
Comparison
== null) ||
75
!TypeUtils.AreEquivalent(SwitchValue.Type,
Comparison
.GetParametersCached()[0].ParameterType.GetNonRefType());
99
return Expression.Switch(Type, switchValue, defaultBody,
Comparison
, cases);