예제 #1
0
 public override void Visit(SortOp op, Node n)
 {
     using (new AutoXml(this, op))
     {
         base.Visit(op, n);
     }
 }
예제 #2
0
        // <summary>
        // Copies a sort node
        // </summary>
        // <param name="op"> The Op to Copy </param>
        // <param name="n"> The Node that references the Op </param>
        // <returns> A copy of the original Node that references a copy of the original Op </returns>
        public override Node Visit(SortOp op, Node n)
        {
            // Visit the Node's children and map their Vars
            var children = ProcessChildren(n);

            // Copy the SortOp's SortKeys
            var newSortKeys = Copy(op.Keys);

            // Create a new SortOp that uses the copied SortKeys
            var newSortOp = m_destCmd.CreateSortOp(newSortKeys);

            // Return a new Node that references the copied SortOp and has the copied child Nodes as its children
            return(m_destCmd.CreateNode(newSortOp, children));
        }
        public override Node Visit(SortOp op, Node n)
        {
            List <Node> args = this.ProcessChildren(n);

            return(this.m_destCmd.CreateNode((Op)this.m_destCmd.CreateSortOp(this.Copy(op.Keys)), args));
        }
예제 #4
0
 public override void Visit(SortOp op, Node n)
 {
     using (new Dump.AutoXml(this, (Op)op))
         base.Visit(op, n);
 }
 public virtual void Visit(SortOp op, Node n)
 {
     this.VisitSortOp((SortBaseOp)op, n);
 }
예제 #6
0
 /// <summary>
 ///     Visitor pattern method for SortOp
 /// </summary>
 /// <param name="op"> The SortOp being visited </param>
 /// <param name="n"> The Node that references the Op </param>
 public virtual void Visit(SortOp op, Node n)
 {
     VisitSortOp(op, n);
 }
예제 #7
0
 // <summary>
 // SortOp
 // </summary>
 public virtual TResultType Visit(SortOp op, Node n)
 {
     return(VisitSortOp(op, n));
 }
 public virtual TResultType Visit(SortOp op, Node n)
 {
     return(this.VisitSortOp((SortBaseOp)op, n));
 }