model: make `Model` a `MEntity` to enable the semi-composite design pattern.
authorJean Privat <jean@pryen.org>
Tue, 20 Oct 2015 18:08:57 +0000 (14:08 -0400)
committerJean Privat <jean@pryen.org>
Tue, 20 Oct 2015 18:08:57 +0000 (14:08 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/model/model_base.nit

index 8b33f15..a97ede8 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.