/// <summary>
 ///     Visitor pattern method for NullSentinelOp
 /// </summary>
 /// <param name="op"> The NullSentinelOp being visited </param>
 /// <param name="n"> The Node that references the Op </param>
 public virtual void Visit(NullSentinelOp op, Node n)
 {
     VisitConstantOp(op, n);
 }
Esempio n. 2
0
        /// <summary>
        /// Copies a NullSentinelOp
        /// </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(NullSentinelOp op, Node n)
        {
            NullSentinelOp newOp = m_destCmd.CreateNullSentinelOp();

            return(m_destCmd.CreateNode(newOp));
        }
Esempio n. 3
0
 // <summary>
 // Copies a NullSentinelOp
 // </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(NullSentinelOp op, Node n)
 {
     var newOp = m_destCmd.CreateNullSentinelOp();
     return m_destCmd.CreateNode(newOp);
 }