loader: make `mmodule2nmodule` private
authorJean Privat <jean@pryen.org>
Sat, 3 Jan 2015 21:36:19 +0000 (16:36 -0500)
committerJean Privat <jean@pryen.org>
Sat, 3 Jan 2015 21:53:23 +0000 (16:53 -0500)
Signed-off-by: Jean Privat <jean@pryen.org>

src/loader.nit

index d5b8797..93ef66c 100644 (file)
@@ -551,8 +551,9 @@ redef class ModelBuilder
        var nmodules = new Array[AModule]
 
        # Register the nmodule associated to each mmodule
-       # FIXME: why not refine the `MModule` class with a nullable attribute?
-       var mmodule2nmodule = new HashMap[MModule, AModule]
+       #
+       # Public clients need to use `mmodule2node` to access stuff.
+       private var mmodule2nmodule = new HashMap[MModule, AModule]
 
        # Retrieve the associated AST node of a mmodule.
        # This method is used to associate model entity with syntactic entities.