modelbuilder: `build_classes` do not call `build_properties`
authorJean Privat <jean@pryen.org>
Thu, 18 Jul 2013 17:39:28 +0000 (13:39 -0400)
committerJean Privat <jean@pryen.org>
Fri, 19 Jul 2013 02:40:49 +0000 (22:40 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/modelbuilder.nit

index bd4fa35..a342c13 100644 (file)
@@ -424,6 +424,9 @@ class ModelBuilder
        do
                for nmodule in self.nmodules do
                        build_classes(nmodule)
+                       for nclassdef in nmodule.n_classdefs do
+                               build_properties(nclassdef)
+                       end
                end
        end
 
@@ -657,10 +660,6 @@ class ModelBuilder
                # TODO: Check that the super-class is not intrusive
 
                # TODO: Check that the super-class is not already known (by transitivity)
-
-               for nclassdef in nmodule.n_classdefs do
-                       self.build_properties(nclassdef)
-               end
        end
 
        # Register the nmodule associated to each mmodule