protected Expression Visit(CustomExpression node) { if (node == null) return null; return node.Accept(this); }
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)); }
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)); }
protected Expression Visit(CustomExpression node) { if (node == null) { return(null); } return(node.Accept(this)); }
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)); }
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)); }