/** * Creates a new tree field only constructor {@code AFunctionExportIR TAG=function} 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 nameList_ the {@link NodeList} node for the {@code nameList} child of this {@link AFunctionExportIR} node */ public AFunctionExportIR(List<? extends SDeclIR> decl_, List<? extends ATokenNameIR> nameList_) { super(null,null,null,decl_); this.setNameList(nameList_); }
/** * Creates a new complete constructor {@code AFunctionExportIR} 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 nameList_ the {@link NodeList} node for the {@code nameList} child of this {@link AFunctionExportIR} node * @param exportType_ the {@link STypeIR} <b>graph</a> node for the {@code exportType} child of this {@link AFunctionExportIR} node. * <i>The parent of this {@code exportType } will not be changed by adding it to this node.</i> */ public AFunctionExportIR(SourceNode sourceNode_, Object tag_, List<? extends ClonableString> metaData_, List<? extends SDeclIR> decl_, List<? extends ATokenNameIR> nameList_, STypeIR exportType_) { super(sourceNode_,tag_,metaData_,decl_); this.setNameList(nameList_); this.setExportType(exportType_); }
@Override public SExportIR caseAFunctionExport(AFunctionExport node, IRInfo question) throws AnalysisException { AFunctionExportIR funcExportCg = new AFunctionExportIR(); funcExportCg.setNameList(consNames(node.getNameList())); funcExportCg.setExportType(consExportType(node.getExportType(), question)); return addDecl(node, funcExportCg, question); }