model: avoid running phase on fictive module
authorAlexandre Terrasa <alexandre@moz-code.org>
Tue, 21 Apr 2015 20:23:43 +0000 (16:23 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Tue, 21 Apr 2015 20:23:43 +0000 (16:23 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

src/modelbuilder.nit

index 23f7d49..27d6710 100644 (file)
@@ -91,6 +91,7 @@ redef class ModelBuilder
                model.mmodule_importation_hierarchy.sort(mmodules)
                var nmodules = new Array[AModule]
                for mm in mmodules do
+                       if mm.is_fictive then continue
                        nmodules.add(mmodule2node(mm).as(not null))
                end
                toolcontext.run_phases(nmodules)