nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
model: infer the types of attributes with unary - and once
[nit.git]
/
src
/
nituml.nit
diff --git
a/src/nituml.nit
b/src/nituml.nit
index
ea838aa
..
0b9bf72
100644
(file)
--- a/
src/nituml.nit
+++ b/
src/nituml.nit
@@
-41,11
+41,12
@@
private class UMLPhase
super Phase
redef fun process_mainmodule(mainmodule, mmodules)
do
super Phase
redef fun process_mainmodule(mainmodule, mmodules)
do
- var view = new ModelView(mainmodule.model, mainmodule)
+ var filters = new ModelFilter
if not toolcontext.opt_privacy.value then
if not toolcontext.opt_privacy.value then
- view.min_visibility = protected_visibility
+ filters.min_visibility = protected_visibility
end
end
+ var view = new ModelView(mainmodule.model, mainmodule, filters)
var d = new UMLModel(view, mainmodule)
if toolcontext.opt_gen.value == 0 then
print d.generate_class_uml.write_to_string
var d = new UMLModel(view, mainmodule)
if toolcontext.opt_gen.value == 0 then
print d.generate_class_uml.write_to_string