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