public ParsedElementInit(
     ParsedMethodInfo addMethod,
     IEnumerable <ParsedExpression> arguments)
 {
     this.AddMethod = addMethod;
     this.Arguments = arguments.ToArray();
 }
 public ParsedMethodCallExpression(
     IEnumerable <ParsedExpression> arguments,
     ParsedExpression instance,
     ParsedMethodInfo method,
     ParsedType type)
     : base()
 {
     this.Arguments = arguments.ToArray();
     this.Instance  = instance;
     this.Method    = method;
     this.Type      = type;
 }
Example #3
0
 public ParsedUnaryExpression(
     ParsedExpression operand,
     ParsedMethodInfo method,
     ExpressionType nodeType,
     ParsedType type)
     : base()
 {
     this.Operand  = operand;
     this.Method   = method;
     this.NodeType = nodeType;
     this.Type     = type;
 }
 public ParsedSwitchExpression(
     ParsedType type,
     ParsedExpression switchValue,
     ParsedExpression defaultBody,
     ParsedMethodInfo comparison,
     IEnumerable <ParsedSwitchCase> cases)
     : base()
 {
     this.Type        = type;
     this.SwitchValue = switchValue;
     this.DefaultBody = defaultBody;
     this.Comparison  = comparison;
     this.Cases       = cases;
 }
 public ParsedBinaryExpression(
     ParsedLambdaExpression conversion,
     ParsedExpression left,
     bool liftToNull,
     ParsedMethodInfo method,
     ExpressionType nodeType,
     ParsedExpression right)
     : base()
 {
     this.Conversion = conversion;
     this.Left       = left;
     this.LiftToNull = liftToNull;
     this.Method     = method;
     this.NodeType   = nodeType;
     this.Right      = right;
 }