public SerializableNewExpression(NewExpression expression, SerializableExpressionConverter converter) : base(expression) { Arguments = converter.Convert(expression.Arguments); Constructor = expression.Constructor; Members = converter.Convert(expression.Members); }
public SerializableConditionalExpression(ConditionalExpression expression, SerializableExpressionConverter converter) : base(expression) { IfFalse = converter.Convert(expression.IfFalse); IfTrue = converter.Convert(expression.IfTrue); Test = converter.Convert(expression.Test); }
public SerializableMethodCallExpression(MethodCallExpression expression, SerializableExpressionConverter converter) : base(expression) { Arguments = converter.Convert(expression.Arguments); Method = converter.Convert(expression.Method); Object = converter.Convert(expression.Object); }
public SerializableBlockExpression(BlockExpression expression, SerializableExpressionConverter converter) : base(expression) { Expressions = converter.Convert(expression.Expressions); Result = converter.Convert(expression.Result); Variables = converter.Convert <SerializableParameterExpression>(expression.Variables); }
public SerializableIndexExpression(IndexExpression expression, SerializableExpressionConverter converter) : base(expression) { Arguments = converter.Convert(expression.Arguments); Indexer = expression.Indexer; Object = converter.Convert(expression.Object); }
public SerializableSwitchExpression(SwitchExpression expression, SerializableExpressionConverter converter) : base(expression) { Cases = expression.Cases.Select(c => Tuple.Create(converter.Convert(c.Body), converter.Convert(c.TestValues))).ToList(); Comparison = converter.Convert(expression.Comparison); DefaultBody = converter.Convert(expression.DefaultBody); SwitchValue = converter.Convert(expression.SwitchValue); }
public SerializableLambdaExpression(LambdaExpression expression, SerializableExpressionConverter converter) : base(expression) { Body = converter.Convert(expression.Body); Name = expression.Name; Parameters = converter.Convert <SerializableParameterExpression>(expression.Parameters); TailCall = expression.TailCall; }
public SerializableBinaryExpression(BinaryExpression expression, SerializableExpressionConverter converter) : base(expression) { Conversion = converter.Convert <SerializableLambdaExpression>(expression.Conversion); IsLiftedToNull = expression.IsLiftedToNull; Left = converter.Convert(expression.Left); Method = converter.Convert(expression.Method); Right = converter.Convert(expression.Right); }
public SerializableLabelExpression(LabelExpression expression, SerializableExpressionConverter converter) : base(expression) { DefaultValue = converter.Convert(expression.DefaultValue); TargetName = expression.Target.Name; TargetType = expression.Target.Type; }
internal override Expression Convert() { return(Expression.Call( Object.TryConvert(), SerializableExpressionConverter.Convert(Method), Arguments.TryConvert())); }
internal override Expression Convert() { return(Expression.MakeUnary( NodeType, Operand.TryConvert(), Type, SerializableExpressionConverter.Convert(Method))); }
public SerializableGotoExpression(GotoExpression expression, SerializableExpressionConverter converter) : base(expression) { Kind = expression.Kind; TargetName = expression.Target.Name; TargetType = expression.Target.Type; Value = converter.Convert(expression.Value); }
public SerializableLoopExpression(LoopExpression expression, SerializableExpressionConverter converter) : base(expression) { Body = converter.Convert(expression.Body); BreakLabelType = expression.BreakLabel.Type; BreakLabelName = expression.BreakLabel.Name; ContinueLabelType = expression.ContinueLabel.Type; ContinueLabelName = expression.ContinueLabel.Name; }
internal override Expression Convert() { return(Expression.Switch( Type, SwitchValue.TryConvert(), DefaultBody.TryConvert(), SerializableExpressionConverter.Convert(Comparison), Cases.Select(c => Expression.SwitchCase(c.Item1.TryConvert(), c.Item2.TryConvert())))); }
internal override Expression Convert() { return(Expression.MakeBinary( NodeType, Left.TryConvert(), Right.TryConvert(), IsLiftedToNull, SerializableExpressionConverter.Convert(Method), Conversion.TryConvert <LambdaExpression>())); }
public SerializableTryExpression(TryExpression expression, SerializableExpressionConverter converter) : base(expression) { Body = converter.Convert(expression.Body); Fault = converter.Convert(expression.Fault); Finally = converter.Convert(expression.Finally); Handlers = expression.Handlers .Select(h => Tuple.Create( converter.Convert(h.Body), converter.Convert(h.Filter), h.Test, converter.Convert <SerializableParameterExpression>(h.Variable))) .ToList(); }
public SerializableMemberExpression(MemberExpression expression, SerializableExpressionConverter converter) : base(expression) { Expr = converter.Convert(expression.Expression); Member = converter.Convert(expression.Member); }
public SerializableInvocationExpression(InvocationExpression expression, SerializableExpressionConverter converter) : base(expression) { Arguments = converter.Convert(expression.Arguments); Expr = converter.Convert(expression.Expression); }
public SerializableMemberInitExpression(MemberInitExpression expression, SerializableExpressionConverter converter) : base(expression) { Bindings = expression.Bindings.Select(converter.Convert).ToList(); NewExpression = converter.Convert <SerializableNewExpression>(expression.NewExpression); }
public SerializableTypeBinaryExpression(TypeBinaryExpression expression, SerializableExpressionConverter converter) : base(expression) { Expr = converter.Convert(expression.Expression); TypeOperand = expression.TypeOperand; }
public SerializableNewArrayExpression(NewArrayExpression expression, SerializableExpressionConverter converter) : base(expression) { Expressions = converter.Convert(expression.Expressions); }
public SerializableUnaryExpression(UnaryExpression expression, SerializableExpressionConverter converter) : base(expression) { Method = converter.Convert(expression.Method); Operand = converter.Convert(expression.Operand); }
internal override Expression Convert() { return(Expression.ListInit( NewExpression.TryConvert <NewExpression>(), Initializers.Select(i => Expression.ElementInit(SerializableExpressionConverter.Convert(i.Item1), i.Item2.TryConvert())))); }
public SerializableListInitExpression(ListInitExpression expression, SerializableExpressionConverter converter) : base(expression) { Initializers = expression.Initializers.Select(i => Tuple.Create(converter.Convert(i.AddMethod), converter.Convert(i.Arguments))).ToList(); NewExpression = converter.Convert <SerializableNewExpression>(expression.NewExpression); }
internal override Expression Convert() { return(Expression.MakeMemberAccess( Expr.TryConvert(), SerializableExpressionConverter.Convert(Member))); }
public SerializableRuntimeVariablesExpression(RuntimeVariablesExpression expression, SerializableExpressionConverter converter) : base(expression) { Variables = converter.Convert <SerializableParameterExpression>(expression.Variables); }