Exemplo n.º 1
0
 // <summary>
 // Clone an IsOfOp
 // </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(IsOfOp op, Node n)
 {
     if (op.IsOfOnly)
     {
         return(CopyDefault(m_destCmd.CreateIsOfOnlyOp(op.IsOfType), n));
     }
     else
     {
         return(CopyDefault(m_destCmd.CreateIsOfOp(op.IsOfType), n));
     }
 }