/** * Creates a deep clone of this {@link AMkTypeExp} node while putting all * old node-new node relations in the map {@code oldToNewMap}. * @param oldToNewMap the map filled with the old node-new node relation * @return a deep clone of this {@link AMkTypeExp} node */ public AMkTypeExp clone(Map<INode,INode> oldToNewMap) { AMkTypeExp node = new AMkTypeExp( _type, _location, cloneNode(_typeName, oldToNewMap), cloneList(_args, oldToNewMap), _recordType, _argTypes ); oldToNewMap.put(this, node); return node; }
/** * Returns a deep clone of this {@link AMkTypeExp} node. * @return a deep clone of this {@link AMkTypeExp} node */ public AMkTypeExp clone() { return new AMkTypeExp( _type, _location, cloneNode(_typeName), cloneList(_args), _recordType, _argTypes ); }