/// <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 List <Node> children = ProcessChildren(n); // Copy the SortOp's SortKeys List <SortKey> newSortKeys = Copy(op.Keys); // Create a new SortOp that uses the copied SortKeys SortOp 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 void Visit(SortOp op, Node n) { using (new AutoXml(this, op)) { base.Visit(op, n); } }