/** * Creates a deep clone of this {@link ABlockStmIR} 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 ABlockStmIR} node */ public ABlockStmIR clone(Map<INode,INode> oldToNewMap) { ABlockStmIR node = new ABlockStmIR( _sourceNode, _tag, _metaData, _scoped, cloneList(_localDefs, oldToNewMap), cloneList(_statements, oldToNewMap) ); oldToNewMap.put(this, node); return node; }