protected Expression Visit(CustomExpression node) { if (node == null) { return(null); } return(node.Accept(this)); }
public WhileExpression 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.While(test, body, breakTarget, continueTarget)); }
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, breakTarget, continueTarget)); }