コード例 #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;
        }
コード例 #2
0
        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
ファイル: SetDirective.cs プロジェクト: afscrome/IronVelocity
 public SetDirective(Expression left, Expression right, SourceInfo sourceInfo, IBinderFactory binderFactory)
     : base(left, right, sourceInfo)
 {
     _binderFactory = binderFactory;
 }
コード例 #6
0
 public BinaryOperationExpression(Expression left, Expression right, SourceInfo sourceInfo, BinaryOperationBinder binder)
     : base(left, right, sourceInfo)
 {
     _binder = binder;
 }