/** * Creates a new complete constructor {@code ARenamedDeclIR} node with the given nodes as children. * @deprecated This method should not be used, use AstFactory instead. * The basic child nodes are removed from their previous parents. * @param def_ the {@link SDeclIR} node for the {@code def} child of this {@link ARenamedDeclIR} node */ public ARenamedDeclIR(SourceNode sourceNode_, Object tag_, List<? extends ClonableString> metaData_, SDeclIR def_) { super(sourceNode_,tag_,metaData_); this.setDef(def_); }
/** * Creates a new tree field only constructor {@code ARenamedDeclIR TAG=renamed} node with the given nodes as children. * @deprecated This method should not be used, use AstFactory instead. * The basic child nodes are removed from their previous parents. * @param def_ the {@link SDeclIR} node for the {@code def} child of this {@link ARenamedDeclIR} node */ public ARenamedDeclIR(SDeclIR def_) { super(null,null,null); this.setDef(def_); }
@Override public SDeclIR caseARenamedDefinition(ARenamedDefinition node, IRInfo question) throws AnalysisException { PDefinition def = node.getDef(); SDeclIR defCg = def.apply(question.getDeclVisitor(), question); ARenamedDeclIR renamedCg = new ARenamedDeclIR(); renamedCg.setDef(defCg); return defCg; } }