Пример #1
0
        protected VelocityBinaryExpression(Expression left, Expression right, SourceInfo sourceInfo)
        {
            if (left == null)
            {
                throw new ArgumentNullException(nameof(left));
            }

            if (right == null)
            {
                throw new ArgumentNullException(nameof(right));
            }

            Left       = left;
            Right      = right;
            SourceInfo = sourceInfo;
        }
        public MethodInvocationExpression(Expression target, IImmutableList <Expression> arguments, SourceInfo sourceInfo, InvokeMemberBinder binder)
        {
            if (target == null)
            {
                throw new ArgumentNullException(nameof(target));
            }

            if (arguments == null)
            {
                throw new ArgumentOutOfRangeException(nameof(arguments));
            }

            Target     = target;
            Arguments  = arguments;
            SourceInfo = sourceInfo;
            _binder    = binder;
        }
Пример #3
0
 public ObjectArrayExpression(SourceInfo sourceInfo, IImmutableList <Expression> args)
 {
     SourceInfo = sourceInfo;
     Values     = args;
 }
Пример #4
0
 public IntegerRangeExpression(Expression left, Expression right, SourceInfo sourceInfo)
     : base(left, right, sourceInfo)
 {
 }
Пример #5
0
 public SetDirective(Expression left, Expression right, SourceInfo sourceInfo, IBinderFactory binderFactory)
     : base(left, right, sourceInfo)
 {
     _binderFactory = binderFactory;
 }
 public BinaryOperationExpression(Expression left, Expression right, SourceInfo sourceInfo, BinaryOperationBinder binder)
     : base(left, right, sourceInfo)
 {
     _binder = binder;
 }