예제 #1
0
        protected Expression Visit(CustomExpression node)
        {
            if (node == null)
                return null;

            return node.Accept(this);
        }
예제 #2
0
        public UsingExpression Update(ParameterExpression variable, Expression disposable, Expression body)
        {
            if (this.variable == variable && this.disposable == disposable && this.body == body)
            {
                return(this);
            }

            return(CustomExpression.Using(variable, disposable, body));
        }
예제 #3
0
        public DoWhileExpression Update(Expression test, Expression body, LabelTarget breakTarget, LabelTarget continueTarget)
        {
            if (this.test == test && this.body == body && this.break_target == breakTarget && this.continue_target == continueTarget)
            {
                return(this);
            }

            return(CustomExpression.DoWhile(test, body, breakTarget, continueTarget));
        }
예제 #4
0
        protected Expression Visit(CustomExpression node)
        {
            if (node == null)
            {
                return(null);
            }

            return(node.Accept(this));
        }
예제 #5
0
        public ForEachExpression Update(ParameterExpression variable, Expression enumerable, Expression body, LabelTarget breakTarget, LabelTarget continueTarget)
        {
            if (this.variable == variable && this.enumerable == enumerable && this.body == body && break_target == breakTarget && continue_target == continueTarget)
            {
                return(this);
            }

            return(CustomExpression.ForEach(variable, enumerable, body, continueTarget, breakTarget));
        }
예제 #6
0
        public ForExpression Update(ParameterExpression variable, Expression initializer, Expression test, Expression step, Expression body, LabelTarget breakTarget, LabelTarget continueTarget)
        {
            if (this.variable == variable && this.initializer == initializer && this.test == test && this.step == step && this.body == body && this.break_target == breakTarget && this.continue_target == continueTarget)
            {
                return(this);
            }

            return(CustomExpression.For(variable, initializer, test, step, body, breakTarget, continueTarget));
        }