示例#1
0
 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;
 }
示例#3
0
 /// <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;
 }
示例#4
0
 private void CopyChildren(UnaryOperation unaryOperation)
 {
     this.CopyChildren((Expression)unaryOperation);
       unaryOperation.Operand = this.Copy(unaryOperation.Operand);
 }
示例#5
0
 /// <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;
 }
示例#6
0
 /// <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);
 }