/** * Creates a new complete constructor {@code AOperationExportIR} 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 AOperationExportIR} node * @param exportType_ the {@link STypeIR} <b>graph</a> node for the {@code exportType} child of this {@link AOperationExportIR} node. * <i>The parent of this {@code exportType } will not be changed by adding it to this node.</i> */ public AOperationExportIR(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 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); }