/** * Creates a deep clone of this {@link AOperationExportIR} 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 AOperationExportIR} node */ public AOperationExportIR clone(Map<INode,INode> oldToNewMap) { AOperationExportIR node = new AOperationExportIR( _sourceNode, _tag, _metaData, cloneList(_decl, oldToNewMap), cloneList(_nameList, oldToNewMap), _exportType ); oldToNewMap.put(this, node); return node; }
/** * Returns a deep clone of this {@link AOperationExportIR} node. * @return a deep clone of this {@link AOperationExportIR} node */ public AOperationExportIR clone() { return new AOperationExportIR( _sourceNode, _tag, _metaData, cloneList(_decl), cloneList(_nameList), _exportType ); }
@Override public SExportIR caseAOperationExport(AOperationExport node, IRInfo question) throws AnalysisException { AOperationExportIR opExportCg = new AOperationExportIR(); opExportCg.setNameList(consNames(node.getNameList())); opExportCg.setExportType(consExportType(node.getExportType(), question)); return addDecl(node, opExportCg, question); }