/** * Creates a deep clone of this {@link ASetBindIR} 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 ASetBindIR} node */ public ASetBindIR clone(Map<INode,INode> oldToNewMap) { ASetBindIR node = new ASetBindIR( _sourceNode, _tag, _metaData, cloneNode(_pattern, oldToNewMap), cloneNode(_set, oldToNewMap) ); oldToNewMap.put(this, node); return node; }
/** * Returns a deep clone of this {@link ASetBindIR} node. * @return a deep clone of this {@link ASetBindIR} node */ public ASetBindIR clone() { return new ASetBindIR( _sourceNode, _tag, _metaData, cloneNode(_pattern), cloneNode(_set) ); }
@Override public SBindIR caseASetBind(ASetBind node, IRInfo question) throws AnalysisException { PPattern pattern = node.getPattern(); SPatternIR patternCg = pattern.apply(question.getPatternVisitor(), question); PExp set = node.getSet(); SExpIR setCg = set.apply(question.getExpVisitor(), question); ASetBindIR setBind = new ASetBindIR(); setBind.setPattern(patternCg); setBind.setSet(setCg); return setBind; }