public override Expression CreateExpressionTree(ResolveContext rc) { if (UserOperator != null) { Arguments args = new Arguments (2); args.Add (new Argument (Binary.Left)); args.Add (new Argument (Binary.Right)); var method = new UserOperatorCall (UserOperator, args, Binary.CreateExpressionTree, loc); return method.CreateExpressionTree (rc); } return Binary.CreateExpressionTree (rc); }
public override Expression CreateExpressionTree (ResolveContext rc) { if (UserOperator != null) { Arguments args = new Arguments (2); args.Add (new Argument (Binary.Left)); args.Add (new Argument (Binary.Right)); var method = new UserOperatorCall (UserOperator, args, Binary.CreateExpressionTree, loc); return method.CreateExpressionTree (rc); } return Binary.CreateExpressionTree (rc); }