nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge: nitweb: add documentation links in rendered code with htmllight
[nit.git]
/
src
/
test_model_index.nit
diff --git
a/src/test_model_index.nit
b/src/test_model_index.nit
index
feb60a0
..
e19b442
100644
(file)
--- a/
src/test_model_index.nit
+++ b/
src/test_model_index.nit
@@
-62,12
+62,14
@@
var mmodules = mbuilder.parse_full([args.first])
if mmodules.is_empty then return
mbuilder.run_phases
toolcontext.run_global_phases(mmodules)
if mmodules.is_empty then return
mbuilder.run_phases
toolcontext.run_global_phases(mmodules)
-var mainmodule = toolcontext.make_main_module(mmodules)
# Build index
# Build index
+var filters = new ModelFilter(
+ private_visibility,
+ accept_fictive = false,
+ accept_test = false)
var index = new ModelIndex
var index = new ModelIndex
-var view = new ModelView(model, mainmodule)
-for mentity in view.mentities do
+for mentity in model.collect_mentities(filters) do
if mentity isa MClassDef or mentity isa MPropDef then continue
index.index(mentity)
end
if mentity isa MClassDef or mentity isa MPropDef then continue
index.index(mentity)
end