Exemplo n.º 1
0
        public Expression[] GetExpressions(ExpressionParsingContext context)
        {
            var expressions = new List <Expression>();

            GetExpressions(context, expressions);
            return(expressions.ToArray());
        }
Exemplo n.º 2
0
        public override Expression GetExpression(ExpressionParsingContext context)
        {
            var target     = P0.GetExpression(context);
            var targetType = target.Type;

            var member = targetType.GetMember(P2.Value);

            return(Expression.MakeMemberAccess(target, member[0]));
        }
Exemplo n.º 3
0
        public override Expression GetExpression(ExpressionParsingContext context)
        {
            var call = P0 as DotExpressionNode;

            if (call != null)
            {
                return(Expression.Call(call.P0.GetExpression(context), call.P2.Value, null, P2.GetExpressions(context)));
            }
            else
            {
                return(Expression.Invoke(P0.GetExpression(context), P2.GetExpressions(context)));
            }
        }
Exemplo n.º 4
0
 public override Expression GetExpression(ExpressionParsingContext context)
 {
     return Expression.AndAlso(P0.GetExpression(context), P2.GetExpression(context));
 }
Exemplo n.º 5
0
 public override Expression GetExpression(ExpressionParsingContext context)
 {
     return Expression.Subtract(P0.GetExpression(context), P2.GetExpression(context));
 }
Exemplo n.º 6
0
 public override Expression GetExpression(ExpressionParsingContext context)
 {
     return P1.GetExpression(context);
 }
Exemplo n.º 7
0
 public override Expression GetExpression(ExpressionParsingContext context)
 {
     return Expression.NotEqual(P0.GetExpression(context), P2.GetExpression(context));
 }
Exemplo n.º 8
0
 public override Expression GetExpression(ExpressionParsingContext context)
 {
     return Expression.Multiply(P0.GetExpression(context), P2.GetExpression(context));
 }
Exemplo n.º 9
0
 public override Expression GetExpression(ExpressionParsingContext context)
 {
     return Expression.GreaterThan(P0.GetExpression(context), P2.GetExpression(context));
 }
Exemplo n.º 10
0
 public abstract void GetExpressions(ExpressionParsingContext context, List<Expression> expressions);
Exemplo n.º 11
0
 public override Expression GetExpression(ExpressionParsingContext context)
 {
     return(Expression.Constant(int.Parse(P0.Value, CultureInfo.InvariantCulture)));
 }
Exemplo n.º 12
0
 public override Expression GetExpression(ExpressionParsingContext context)
 {
     return(Expression.Constant(P0.Value));
 }
Exemplo n.º 13
0
 public abstract Expression GetExpression(ExpressionParsingContext context);
Exemplo n.º 14
0
 public override Expression GetExpression(ExpressionParsingContext context)
 {
     return(context.GetParameter(P0.Value));
 }
Exemplo n.º 15
0
 public override Expression GetExpression(ExpressionParsingContext context)
 {
     return(Expression.LessThanOrEqual(P0.GetExpression(context), P2.GetExpression(context)));
 }
Exemplo n.º 16
0
 public abstract void GetExpressions(ExpressionParsingContext context, List <Expression> expressions);
Exemplo n.º 17
0
 public Expression[] GetExpressions(ExpressionParsingContext context)
 {
     var expressions = new List<Expression>();
     GetExpressions(context, expressions);
     return expressions.ToArray();
 }
Exemplo n.º 18
0
 public override void GetExpressions(ExpressionParsingContext context, List <Expression> expressions)
 {
 }
Exemplo n.º 19
0
 public abstract Expression GetExpression(ExpressionParsingContext context);
Exemplo n.º 20
0
 public override void GetExpressions(ExpressionParsingContext context, List <Expression> expressions)
 {
     expressions.Add(P0.GetExpression(context));
     P2.GetExpressions(context, expressions);
 }
Exemplo n.º 21
0
 public override Expression GetExpression(ExpressionParsingContext context)
 {
     return context.GetParameter(P0.Value);
 }
Exemplo n.º 22
0
 public override Expression GetExpression(ExpressionParsingContext context)
 {
     return(Expression.Not(P1.GetExpression(context)));
 }
Exemplo n.º 23
0
 public override Expression GetExpression(ExpressionParsingContext context)
 {
     return Expression.Negate(P1.GetExpression(context));
 }
Exemplo n.º 24
0
 public override Expression GetExpression(ExpressionParsingContext context)
 {
     return(Expression.Divide(P0.GetExpression(context), P2.GetExpression(context)));
 }
Exemplo n.º 25
0
 public override Expression GetExpression(ExpressionParsingContext context)
 {
     return Expression.Constant(int.Parse(P0.Value, CultureInfo.InvariantCulture));
 }
Exemplo n.º 26
0
        public override Expression GetExpression(ExpressionParsingContext context)
        {
            var call = P0 as DotExpressionNode;

            if (call != null)
            {
                return Expression.Call(call.P0.GetExpression(context), call.P2.Value, null, P2.GetExpressions(context));
            }
            else
            {
                return Expression.Invoke(P0.GetExpression(context), P2.GetExpressions(context));
            }
        }
Exemplo n.º 27
0
 public override void GetExpressions(ExpressionParsingContext context, List<Expression> expressions)
 {
     expressions.Add(P0.GetExpression(context));
 }
Exemplo n.º 28
0
        public override Expression GetExpression(ExpressionParsingContext context)
        {
            var target = P0.GetExpression(context);
            var targetType = target.Type;

            var member = targetType.GetMember(P2.Value);

            return Expression.MakeMemberAccess(target, member[0]);
        }
Exemplo n.º 29
0
 public override Expression GetExpression(ExpressionParsingContext context)
 {
     return Expression.Condition(P0.GetExpression(context), P2.GetExpression(context), P4.GetExpression(context));
 }
Exemplo n.º 30
0
 public override void GetExpressions(ExpressionParsingContext context, List<Expression> expressions)
 {
 }
Exemplo n.º 31
0
 public override Expression GetExpression(ExpressionParsingContext context)
 {
     return Expression.Constant(true);
 }
Exemplo n.º 32
0
 public override Expression GetExpression(ExpressionParsingContext context)
 {
     return(Expression.GreaterThan(P0.GetExpression(context), P2.GetExpression(context)));
 }