model: promote MModule::filename to model::mmodule
authorJean Privat <jean@pryen.org>
Fri, 18 Dec 2015 15:47:55 +0000 (10:47 -0500)
committerJean Privat <jean@pryen.org>
Fri, 18 Dec 2015 18:09:52 +0000 (13:09 -0500)
Signed-off-by: Jean Privat <jean@pryen.org>

src/loader.nit
src/model/mmodule.nit

index 8ccbd19..6df4d61 100644 (file)
@@ -1011,9 +1011,6 @@ redef class ModelBuilder
 end
 
 redef class MModule
-       # The path of the module source
-       var filepath: nullable String = null
-
        # Force the parsing of the module using `modelbuilder`.
        #
        # If the module was already parsed, the existing ASI is returned.
index f6ff6ff..7710bb2 100644 (file)
@@ -81,6 +81,9 @@ class MModule
        # The group of module in the package if any
        var mgroup: nullable MGroup
 
+       # The path of the module source, if any
+       var filepath: nullable String = null is writable
+
        # The package of the module if any
        # Safe alias for `mgroup.mpackage`
        fun mpackage: nullable MPackage