nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
399ed93
)
modelbuilder: add `MGroup::module_paths` to store potential nit files
author
Jean Privat
<jean@pryen.org>
Tue, 18 Mar 2014 18:44:51 +0000
(14:44 -0400)
committer
Jean Privat
<jean@pryen.org>
Tue, 18 Mar 2014 18:44:51 +0000
(14:44 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>
src/modelbuilder.nit
patch
|
blob
|
history
diff --git
a/src/modelbuilder.nit
b/src/modelbuilder.nit
index
619edbf
..
1b2da74
100644
(file)
--- 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