/// <summary> /// NewInstanceOp /// </summary> /// <param name="op"> the NewInstanceOp </param> /// <param name="n"> corresponding node </param> /// <returns> new subtree </returns> public override Node Visit(NewInstanceOp op, Node n) { return FlattenConstructor(op, n); }
/// <summary> /// Copies a type constructor /// </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(NewInstanceOp op, Node n) { return(CopyDefault(m_destCmd.CreateNewInstanceOp(op.Type), n)); }
public override void Visit(NewInstanceOp op, Node n) { VisitNewOp(op, n); }
/// <summary> /// Visitor pattern method for NewInstanceOp /// </summary> /// <param name="op"> The NewInstanceOp being visited </param> /// <param name="n"> The Node that references the Op </param> public virtual void Visit(NewInstanceOp op, Node n) { VisitScalarOpDefault(op, n); }
// <summary> // Copies a type constructor // </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(NewInstanceOp op, Node n) { return CopyDefault(m_destCmd.CreateNewInstanceOp(op.Type), n); }