nitls: visit group for relevant outputs
authorJean Privat <jean@pryen.org>
Fri, 5 Dec 2014 03:36:04 +0000 (22:36 -0500)
committerJean Privat <jean@pryen.org>
Sat, 6 Dec 2014 04:25:20 +0000 (23:25 -0500)
Signed-off-by: Jean Privat <jean@pryen.org>

src/nitls.nit

index 3e6126a..366c4fc 100644 (file)
@@ -172,17 +172,26 @@ if sum == 0 then
        end
 end
 
+# Identify all relevant files
 for a in files do
+       var g = mb.get_mgroup(a)
        var mp = mb.identify_file(a)
-       tc.check_errors
-       if mp != null and not opt_paths.value then
+       if g != null and not opt_project.value then
+               mb.visit_group(g)
+       end
+end
+
+# Load modules to get more informations
+for mp in mb.identified_files.values do
+       if mp == null then continue
+       if not opt_paths.value or opt_depends.value then
                var mm = mb.load_module(mp.filepath)
                if mm != null and opt_depends.value then
                        mb.build_module_importation(mm)
                end
-               tc.check_errors
        end
 end
+#tc.check_errors
 
 
 var ot = new ProjTree(tc)