/// <summary> /// Visits the specified unary negation. /// </summary> /// <param name="unaryNegation">The unary negation.</param> public override void Visit(IUnaryNegation unaryNegation) { UnaryNegation mutableUnaryNegation = new UnaryNegation(unaryNegation); this.resultExpression = this.myCodeCopier.DeepCopy(mutableUnaryNegation); }
/// <summary> /// Visits the specified unary negation. /// </summary> /// <param name="unaryNegation">The unary negation.</param> /// <returns></returns> protected virtual IExpression DeepCopy(UnaryNegation unaryNegation) { return this.DeepCopy((UnaryOperation)unaryNegation); }
/// <summary> /// Visits the specified unary negation. /// </summary> /// <param name="unaryNegation">The unary negation.</param> public override void Visit(IUnaryNegation unaryNegation) { UnaryNegation mutableUnaryNegation = unaryNegation as UnaryNegation; if (alwaysMakeACopy || mutableUnaryNegation == null) mutableUnaryNegation = new UnaryNegation(unaryNegation); this.resultExpression = this.myCodeMutator.Visit(mutableUnaryNegation); }
/// <summary> /// Rewrites the children of the given unary negation expression. /// </summary> public virtual void RewriteChildren(UnaryNegation unaryNegation) { this.RewriteChildren((UnaryOperation)unaryNegation); }
/// <summary> /// Visits the specified unary negation. /// </summary> /// <param name="unaryNegation">The unary negation.</param> /// <returns></returns> public virtual IExpression Visit(UnaryNegation unaryNegation) { return this.Visit((UnaryOperation)unaryNegation); }