model: introduce `name` in MEntity according to it's documentation
[nit.git] / src / model / mmodule.nit
index d2750ed..37c3ed0 100644 (file)
@@ -69,6 +69,8 @@ end
 
 # A Nit module is usually associated with a Nit source file.
 class MModule
+       super MEntity
+
        # The model considered
        var model: Model
 
@@ -82,7 +84,7 @@ class MModule
        var mgroup: nullable MGroup
 
        # The short name of the module
-       var name: String
+       redef var name: String
 
        # The origin of the definition
        var location: Location