nitc :: AModule :: init_amodule
init init_amodule (
n_moduledecl: nullable AModuledecl,
n_imports: Collection[Object], # Should be Collection[AImport]
n_extern_code_blocks: Collection[Object], # Should be Collection[AExternCodeBlock]
n_classdefs: Collection[Object] # Should be Collection[AClassdef]
)
do
_n_moduledecl = n_moduledecl
if n_moduledecl != null then n_moduledecl.parent = self
self.n_imports.unsafe_add_all(n_imports)
self.n_extern_code_blocks.unsafe_add_all(n_extern_code_blocks)
self.n_classdefs.unsafe_add_all(n_classdefs)
end
src/parser/parser_prod.nit:10,2--22,4