From: Alexandre Terrasa Date: Tue, 21 Apr 2015 20:23:43 +0000 (-0400) Subject: model: avoid running phase on fictive module X-Git-Tag: v0.7.4~9^2~1 X-Git-Url: http://nitlanguage.org model: avoid running phase on fictive module Signed-off-by: Alexandre Terrasa --- diff --git a/src/modelbuilder.nit b/src/modelbuilder.nit index 23f7d49..27d6710 100644 --- a/src/modelbuilder.nit +++ b/src/modelbuilder.nit @@ -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)