public override AbstractExpression AcceptRewriter(StatementRewriter rewriter) { var newCondition = Condition.AcceptRewriter(rewriter); var newWhenTrue = WhenTrue.AcceptRewriter(rewriter); var newWhenFalse = WhenFalse.AcceptRewriter(rewriter); if (newCondition != Condition || newWhenTrue != WhenTrue || newWhenFalse != WhenFalse) { return(new ConditionalExpression { Bindings = new BindingCollection(this.Bindings), Type = this.Type, Condition = newCondition, WhenTrue = newWhenTrue, WhenFalse = newWhenFalse }); } return(this); }
public override AbstractStatement AcceptRewriter(StatementRewriter rewriter) { return(rewriter.RewriteDoStatement(this)); }
public override AbstractExpression AcceptRewriter(StatementRewriter rewriter) { return(rewriter.RewriteBinaryExpression(this)); }
IAssignable IAssignable.AcceptRewriter(StatementRewriter rewriter) { return((IAssignable)this.AcceptRewriter(rewriter)); }
public override AbstractExpression AcceptRewriter(StatementRewriter rewriter) { return(rewriter.RewriteLocalVariableExpression(this)); }
public abstract AbstractStatement AcceptRewriter(StatementRewriter rewriter);
public override AbstractExpression AcceptRewriter(StatementRewriter rewriter) { return(rewriter.RewriteObjectInitializerExpression(this)); }
public override AbstractExpression AcceptRewriter(StatementRewriter rewriter) { var newType = rewriter.RewriteReferenceToTypeMember(TypeOperand); return(newType == TypeOperand ? this : new TypeReferenceExpression(newType)); }
public abstract AbstractExpression AcceptRewriter(StatementRewriter rewriter);
public override AbstractExpression AcceptRewriter(StatementRewriter rewriter) { return(rewriter.RewriteDelegateInvocationExpression(this)); }
public override AbstractExpression AcceptRewriter(StatementRewriter rewriter) { return(rewriter.RewriteInterpolatedStringExpression(this)); }
IAssignable IAssignable.AcceptRewriter(StatementRewriter rewriter) { return(this); }
public override AbstractExpression AcceptRewriter(StatementRewriter rewriter) { return(rewriter.RewriteAnonymousDelegateExpression(this)); }
public override AbstractStatement AcceptRewriter(StatementRewriter rewriter) { return(rewriter.RewriteVariableDeclaraitonStatement(this)); }