nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
619f314
)
modelbuilder: automatic mainmodule from run_global_phases is fictive
author
Jean Privat
<jean@pryen.org>
Thu, 17 Jul 2014 14:00:15 +0000
(10:00 -0400)
committer
Jean Privat
<jean@pryen.org>
Thu, 17 Jul 2014 14:01:00 +0000
(10:01 -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
bb5d588
..
724d79f
100644
(file)
--- a/
src/modelbuilder.nit
+++ b/
src/modelbuilder.nit
@@
-65,6
+65,7
@@
redef class ToolContext
else
# We need a main module, so we build it by importing all modules
mainmodule = new MModule(modelbuilder.model, null, mmodules.first.name, new Location(mmodules.first.location.file, 0, 0, 0, 0))
+ mainmodule.is_fictive = true
mainmodule.set_imported_mmodules(mmodules)
end
for phase in phases_list do