var typecount: Counter[MType]
- # Get a new visitor on a classef to add type count in `typecount'.
+ # Get a new visitor on a classef to add type count in `typecount`.
init(modelbuilder: ModelBuilder, nclassdef: AClassdef, typecount: Counter[MType])
do
self.modelbuilder = modelbuilder
# Display data
print "--- Metrics of the explitic static types ---"
- print "Total number of explicit static types: {typecount.total}"
- if typecount.total == 0 then return
+ print "Total number of explicit static types: {typecount.sum}"
+ if typecount.sum == 0 then return
print "Statistics of type usage:"
typecount.print_summary