-for a in files do
- var mp = mb.identify_file(a)
- tc.check_errors
- if mp != null and not opt_paths.value then
- var mm = mb.load_module(mp.filepath)
- if mm != null and opt_depends.value then
- mb.build_module_importation(mm)
+var mmodules = mb.scan_full(files)
+
+# Load modules to get more informations
+for mmodule in mmodules do
+ if not opt_paths.value or opt_depends.value then
+ var ast = mmodule.parse(mb)
+ if ast != null and opt_depends.value then
+ mb.build_module_importation(ast)