Merge: niunit: fix after/before test calls
[nit.git] / src / model / model_base.nit
index 8b33f15..2d2dfa0 100644 (file)
@@ -20,6 +20,7 @@ module model_base
 # The container class of a Nit object-oriented model.
 # A model knows modules, classes and properties and can retrieve them.
 class Model
+       super MEntity
 end
 
 # A named and possibly documented entity in the model.
@@ -78,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