From: Jean Privat Date: Tue, 18 Mar 2014 18:44:51 +0000 (-0400) Subject: modelbuilder: add `MGroup::module_paths` to store potential nit files X-Git-Tag: v0.6.5~20^2~6 X-Git-Url: http://nitlanguage.org modelbuilder: add `MGroup::module_paths` to store potential nit files Signed-off-by: Jean Privat --- diff --git a/src/modelbuilder.nit b/src/modelbuilder.nit index 619edbf..1b2da74 100644 --- a/src/modelbuilder.nit +++ b/src/modelbuilder.nit @@ -395,6 +395,7 @@ class ModelBuilder end var res = new ModulePath(pn, path, mgroup) + mgroup.module_paths.add(res) identified_files[rp] = res return res @@ -647,6 +648,10 @@ private class ModulePath redef fun to_s do return filepath end +redef class MGroup + # modules paths associated with the group + private var module_paths = new Array[ModulePath] +end redef class AStdImport # The imported module once determined