toolcontext: `process_options` require arguments.
[nit.git] / src / metrics / static_types_metrics.nit
index 0bc5268..29b3cfc 100644 (file)
@@ -43,7 +43,7 @@ private class ATypeCounterVisitor
 
        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
@@ -79,8 +79,8 @@ do
 
        # 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