11 references to Comparison
System.Core (11)
Microsoft\Scripting\Ast\Expression.DebuggerProxy.cs (1)
395public MethodInfo Comparison { get { return _node.Comparison; } }
Microsoft\Scripting\Ast\ExpressionVisitor.cs (3)
660if (before.Comparison == null && after.Comparison != null) { 661throw Error.MustRewriteWithoutMethod(after.Comparison, "VisitSwitch");
Microsoft\Scripting\Ast\SwitchExpression.cs (1)
128return Expression.Switch(Type, switchValue, defaultBody, Comparison, cases);
Microsoft\Scripting\Compiler\LambdaCompiler.Statements.cs (5)
196EmitExpressionAndBranch(true, Expression.Equal(switchValue, testValue, false, node.Comparison), labels[i]); 212if (node.Comparison == null) { 219Type result = node.Comparison.GetParametersCached()[1].ParameterType.GetNonRefType(); 321if (node.Comparison != null) { 558if (node.Comparison != typeof(string).GetMethod("op_Equality", BindingFlags.Public | BindingFlags.Static | BindingFlags.ExactBinding, null, new[] { typeof(string), typeof(string) }, null)) {
Microsoft\Scripting\Compiler\StackSpiller.cs (1)
837expr = new SwitchExpression(node.Type, switchValue.Node, defaultBody.Node, node.Comparison, cases);