nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modelbuilder: honor --only-parse
[nit.git]
/
src
/
modelbuilder.nit
diff --git
a/src/modelbuilder.nit
b/src/modelbuilder.nit
index
1c87722
..
a55f02e
100644
(file)
--- a/
src/modelbuilder.nit
+++ b/
src/modelbuilder.nit
@@
-105,6
+105,11
@@
class ModelBuilder
self.toolcontext.check_errors
self.toolcontext.check_errors
+ if self.toolcontext.opt_only_parse.value then
+ self.toolcontext.info("--only-parse: stop processing", 2)
+ return new Array[MModule]
+ end
+
# Build the model
self.toolcontext.info("*** BUILD MODEL ***", 1)
self.build_all_classes
# Build the model
self.toolcontext.info("*** BUILD MODEL ***", 1)
self.build_all_classes