model: move-up `is_fictive` from MModule to MEntity
authorJean Privat <jean@pryen.org>
Wed, 21 Oct 2015 20:20:40 +0000 (16:20 -0400)
committerJean Privat <jean@pryen.org>
Wed, 21 Oct 2015 20:20:40 +0000 (16:20 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/model/mmodule.nit
src/model/model_base.nit

index db4b8c6..fdfe399 100644 (file)
@@ -237,11 +237,6 @@ class MModule
                end
        end
 
-       # Is `self` created for internal purpose?
-       # Fictive modules are instantiated internally but they should not be
-       # exposed to the final user.
-       var is_fictive: Bool = false is writable
-
        # Is `self` a unit test module used by `nitunit`?
        var is_test_suite: Bool = false is writable
 
index a97ede8..2d2dfa0 100644 (file)
@@ -79,6 +79,12 @@ abstract class MEntity
        # Note that the broken status is not propagated to enclosing and enclosed entities.
        # e.g. a broken method does not make the whole module broken.
        var is_broken = false is writable
+
+       # Is `self` created for internal purpose?
+       #
+       # Fictive entities are used internally but they should not be
+       # exposed to the final user.
+       var is_fictive: Bool = false is writable
 end
 
 # Something that represents a concern