/** * Creates a new tree field only constructor {@code AModuleDeclIR TAG=module} 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 name_ the {@link String} node for the {@code name} child of this {@link AModuleDeclIR} node * @param import_ the {@link AModuleImportsIR} node for the {@code import} child of this {@link AModuleDeclIR} node * @param exports_ the {@link AModuleExportsIR} node for the {@code exports} child of this {@link AModuleDeclIR} node * @param decls_ the {@link NodeList} node for the {@code decls} child of this {@link AModuleDeclIR} node * @param isFlat_ the {@link Boolean} node for the {@code isFlat} child of this {@link AModuleDeclIR} node * @param isDLModule_ the {@link Boolean} node for the {@code isDLModule} child of this {@link AModuleDeclIR} node */ public AModuleDeclIR(String name_, AModuleImportsIR import_, AModuleExportsIR exports_, List<? extends SDeclIR> decls_, Boolean isFlat_, Boolean isDLModule_) { super(null,null,null); this.setName(name_); this.setImport(import_); this.setExports(exports_); this.setDecls(decls_); this.setIsFlat(isFlat_); this.setIsDLModule(isDLModule_); }
/** * Creates a new complete constructor {@code AModuleDeclIR} 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 name_ the {@link String} node for the {@code name} child of this {@link AModuleDeclIR} node * @param import_ the {@link AModuleImportsIR} node for the {@code import} child of this {@link AModuleDeclIR} node * @param exports_ the {@link AModuleExportsIR} node for the {@code exports} child of this {@link AModuleDeclIR} node * @param decls_ the {@link NodeList} node for the {@code decls} child of this {@link AModuleDeclIR} node * @param isFlat_ the {@link Boolean} node for the {@code isFlat} child of this {@link AModuleDeclIR} node * @param isDLModule_ the {@link Boolean} node for the {@code isDLModule} child of this {@link AModuleDeclIR} node */ public AModuleDeclIR(SourceNode sourceNode_, Object tag_, List<? extends ClonableString> metaData_, String name_, AModuleImportsIR import_, AModuleExportsIR exports_, List<? extends SDeclIR> decls_, Boolean isFlat_, Boolean isDLModule_) { super(sourceNode_,tag_,metaData_); this.setName(name_); this.setImport(import_); this.setExports(exports_); this.setDecls(decls_); this.setIsFlat(isFlat_); this.setIsDLModule(isDLModule_); }
moduleCg.setImport((AModuleImportsIR) importsCg); } else
@Override public void caseAModuleDeclIR(AModuleDeclIR node) throws AnalysisException { result = new AModuleDeclIR(); result.setExports(node.getExports()); result.setImport(node.getImport()); result.setIsDLModule(node.getIsDLModule()); result.setIsFlat(node.getIsFlat()); result.setMetaData(node.getMetaData()); result.setName(node.getName()); result.setSourceNode(node.getSourceNode()); result.setTag(node.getTag()); result.setDecls(node.getDecls()); filterFunctions(node.getDecls()); calcDependencies(); }