Define modules init.d.tl
file (#61) #69
|
@ -37,6 +37,8 @@ local function module_lists(
|
|||
return all_module_infos, module_infos, global_module_infos
|
||||
end
|
||||
|
||||
-- The module's children list produced can contain duplicates.
|
||||
-- We ignore them for now because they are dismissed when building a Map for the generator.
|
||||
local function modules_tree(modules: List<Module_Info.Module_Info>): Map<string, List<string>>
|
||||
local tree: Map<string, List<string>> = Map()
|
||||
for module in modules:iter() do
|
||||
|
@ -127,6 +129,7 @@ filesystem.file_writer.write(
|
|||
)
|
||||
|
||||
for module, children in tree:iter() do
|
||||
-- TODO : this map should be coupled with the all_module_infos list
|
||||
local requires: Map<string, string> = Map()
|
||||
for child in children:iter() do
|
||||
local name = child:gmatch(".*%.(.*)$")()
|
||||
|
|
Loading…
Reference in New Issue