Module:Module introspection: Difference between revisions

Ganaram inukshuk (talk | contribs)
No edit summary
Ganaram inukshuk (talk | contribs)
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 module_functions = p.find_functions(code)
local module_funcs = p.find_functions(code)
local func_table = p.make_function_table(module_name, module_functions, main_function)
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(dep_table) do
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