Esempio n. 1
0
 public override void Visit(ScanViewOp op, Node n)
 {
     using (new AutoXml(this, op)) {
         DumpTable(op.Table);
         VisitChildren(n);
     }
 }
Esempio n. 2
0
        /// <summary>
        /// Copies a ScanViewOp
        /// </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(ScanViewOp op, Node n)
        {
            // First create a new ScanViewOp based on the metadata of the existing Op
            ScanViewOp newScan = m_destCmd.CreateScanViewOp(op.Table.TableMetadata);

            // Map the corresponding tables/columns
            MapTable(newScan.Table, op.Table);

            // Create the new node
            Debug.Assert(n.HasChild0);
            List <Node> children = ProcessChildren(n);

            return(m_destCmd.CreateNode(newScan, children));
        }
Esempio n. 3
0
 public override void Visit(ScanViewOp op, Node n)
 {
     VisitRelOpDefault(op, n);
     AssertRelOp(n.Child0.Op);
 }