Module:Module introspection: Difference between revisions
No edit summary |
mNo edit summary |
||
| Line 242: | Line 242: | ||
-- Get module's functions, then build a table using that information | -- Get module's functions, then build a table using that information | ||
local | local module_funcs = p.find_functions(code) | ||
local func_table = p.make_function_table(module_name, | local func_table = p.make_function_table(module_name, module_funcs, main_function) | ||
-- Count unique dependencies used | -- Count unique dependencies used | ||
local num_deps = 0 | local num_deps = 0 | ||
local deps_found = {} | local deps_found = {} | ||
for _, v in ipairs( | for _, v in ipairs(module_deps) do | ||
local dep = v["dep"] | local dep = v["dep"] | ||
if not deps_found[dep] then | if not deps_found[dep] then | ||