redef class ToolContext
# File pattern used to link documentation to source code.
- var opt_test = new OptionBool("print test data", "--test")
+ var opt_test = new OptionBool("Print test data (metrics and structure)", "--test")
redef init do
super
page_counter.print_elements(100)
# Model metrics
var model_counter = new Counter[String]
- for mentity in doc.mentities do
+ for mentity in doc.model.collect_mentities(doc.filter) do
model_counter.inc mentity.class_name
end
- print "Found {doc.mentities.length} mentities"
+ print "Found {doc.model.collect_mentities(doc.filter).length} mentities"
model_counter.print_elements(100)
end
end