nitg*: extern classes a polymorph in Nit, and unboxed only for extern methods
[nit.git] / src / model_utils.nit
index 3fba8dc..51c643c 100644 (file)
@@ -17,7 +17,7 @@
 # Model exploration and traversing facilities
 module model_utils
 
-import modelbuilder
+import model
 
 redef class MConcern
 
@@ -34,7 +34,7 @@ redef class MConcern
 end
 
 redef class MProject
-       redef fun concern_rank do
+       redef fun concern_rank is cached do
                var max = 0
                for mgroup in mgroups do
                        var mmax = mgroup.concern_rank
@@ -87,7 +87,7 @@ redef class MGroup
                return res
        end
 
-       redef fun concern_rank do
+       redef fun concern_rank is cached do
                var max = 0
                for mmodule in collect_mmodules do
                        var mmax = mmodule.concern_rank
@@ -201,7 +201,7 @@ redef class MModule
                return res
        end
 
-       redef fun concern_rank do
+       redef fun concern_rank is cached do
                var max = 0
                for p in in_importation.direct_greaters do
                        var pmax = p.concern_rank