public ParsedSwitchCase(
     ParsedExpression body,
     IEnumerable <ParsedExpression> testValues)
 {
     this.Body       = body;
     this.TestValues = testValues.ToArray();
 }
 public ParsedMemberAssignment(
     ParsedMemberInfo member,
     ParsedExpression expression)
     : base(member)
 {
     this.Expression = expression;
 }
 public ParsedInvocationExpression(
     ParsedExpression expression,
     IEnumerable <ParsedExpression> arguments)
     : base()
 {
     this.Expression = expression;
     this.Arguments  = arguments.ToArray();
 }
 public ParsedTypeBinaryExpression(
     ParsedExpression expression,
     ParsedType type)
     : base()
 {
     this.Expression = expression;
     this.Type       = type;
 }
Exemplo n.º 5
0
 public ParsedIndexExpression(
     ParsedExpression array,
     IEnumerable <ParsedExpression> indexes)
     : base()
 {
     this.Array   = array;
     this.Indexes = indexes.ToArray();
 }
 public ParsedLabelExpression(
     ParsedLabelTarget target,
     ParsedExpression defaultValue)
     : base()
 {
     this.Target       = target;
     this.DefaultValue = defaultValue;
 }
 public ParsedLoopExpression(
     ParsedExpression body,
     ParsedLabelTarget @break,
     ParsedLabelTarget @continue)
     : base()
 {
     this.Body     = body;
     this.Break    = @break;
     this.Continue = @continue;
 }
 public ParsedMemberExpression(
     ParsedExpression expression,
     ParsedMemberInfo member,
     ParsedType type)
     : base()
 {
     this.Expression = expression;
     this.Member     = member;
     this.Type       = type;
 }
 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;
 }
Exemplo n.º 10
0
 public ParsedBlockExpression(
     IEnumerable <ParsedExpression> expressions,
     ParsedExpression result,
     ParsedType type,
     IEnumerable <ParsedParameterExpression> variables)
     : base()
 {
     this.Expressions = expressions.ToArray();
     this.Result      = result;
     this.Type        = type;
     this.Variables   = variables.ToArray();
 }
 public ParsedGotoExpression(
     GotoExpressionKind kind,
     ParsedLabelTarget target,
     ParsedType type,
     ParsedExpression value)
     : base()
 {
     this.Kind   = kind;
     this.Target = target;
     this.Type   = type;
     this.Value  = value;
 }
Exemplo n.º 12
0
 public ParsedUnaryExpression(
     ParsedExpression operand,
     ParsedMethodInfo method,
     ExpressionType nodeType,
     ParsedType type)
     : base()
 {
     this.Operand  = operand;
     this.Method   = method;
     this.NodeType = nodeType;
     this.Type     = type;
 }
Exemplo n.º 13
0
 public ParsedConditionalExpression(
     ParsedExpression ifFalse,
     ParsedExpression ifTrue,
     ParsedExpression test,
     ParsedType type)
     : base()
 {
     this.IfFalse = ifFalse;
     this.IfTrue  = ifTrue;
     this.Test    = test;
     this.Type    = type;
 }
Exemplo n.º 14
0
 public ParsedTryExpression(
     ParsedType type,
     ParsedExpression body,
     ParsedExpression @finally,
     ParsedExpression fault,
     IEnumerable <ParsedCatchBlock> handlers)
     : base()
 {
     this.Type     = type;
     this.Body     = body;
     this.Finally  = @finally;
     this.Fault    = fault;
     this.Handlers = handlers.ToArray();
 }
Exemplo n.º 15
0
 public ParsedLambdaExpression(
     ParsedExpression body,
     string name,
     IEnumerable <ParsedParameterExpression> parameters,
     ParsedType returnType,
     bool tailCall)
     : base()
 {
     this.Body       = body;
     this.Name       = name;
     this.Parameters = parameters.ToArray();
     this.ReturnType = returnType;
     this.TailCall   = tailCall;
 }
 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;
 }