/** * Returns a deep clone of this {@link AFunctionValueImportIR} node. * @return a deep clone of this {@link AFunctionValueImportIR} node */ public AFunctionValueImportIR clone() { return new AFunctionValueImportIR( _sourceNode, _tag, _metaData, _name, _renamed, _fromModuleName, _importType, cloneList(_typeParams) ); }
/** * Creates a deep clone of this {@link AFunctionValueImportIR} 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 AFunctionValueImportIR} node */ public AFunctionValueImportIR clone(Map<INode,INode> oldToNewMap) { AFunctionValueImportIR node = new AFunctionValueImportIR( _sourceNode, _tag, _metaData, _name, _renamed, _fromModuleName, _importType, cloneList(_typeParams, oldToNewMap) ); oldToNewMap.put(this, node); return node; }