private Expression ParseUnaryOperation(UnaryOperation unaryOperation) { unaryOperation.Operand = this.PopOperandStack(); return unaryOperation; }
private Expression ParseUnaryOperation(UnaryOperation unaryOperation) { Contract.Requires(unaryOperation != null); unaryOperation.Operand = this.PopOperandStack(); return unaryOperation; }
/// <summary> /// Visits the specified unary operation. /// </summary> /// <param name="unaryOperation">The unary operation.</param> /// <returns></returns> protected virtual IExpression DeepCopy(UnaryOperation unaryOperation) { unaryOperation.Operand = Substitute(unaryOperation.Operand); unaryOperation.Type = this.Substitute(unaryOperation.Type); return unaryOperation; }
private void CopyChildren(UnaryOperation unaryOperation) { this.CopyChildren((Expression)unaryOperation); unaryOperation.Operand = this.Copy(unaryOperation.Operand); }
/// <summary> /// Visits the specified unary operation. /// </summary> /// <param name="unaryOperation">The unary operation.</param> /// <returns></returns> public virtual IExpression Visit(UnaryOperation unaryOperation) { unaryOperation.Operand = Visit(unaryOperation.Operand); unaryOperation.Type = this.Visit(unaryOperation.Type); return unaryOperation; }
/// <summary> /// Called from the type specific rewrite method to rewrite the common part of all unary operation expressions. /// </summary> public virtual void RewriteChildren(UnaryOperation unaryOperation) { this.RewriteChildren((Expression)unaryOperation); unaryOperation.Operand = this.Rewrite(unaryOperation.Operand); }