nitmetrics: refactor self usage metrics computation
[nit.git] / src / metrics / self_metrics.nit
similarity index 87%
rename from src/metrics/visit_self.nit
rename to src/metrics/self_metrics.nit
index cc064e7..58aa69d 100644 (file)
@@ -14,8 +14,8 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-# Statistics about the usage of explicit and implicit self
-module visit_self
+# Metrics about the usage of explicit and implicit self
+module self_metrics
 
 import modelbuilder
 private import metrics_base
@@ -37,8 +37,8 @@ private class ASelfVisitor
        end
 end
 
-# Visit the AST and print statistics about the usage of self.
-fun visit_self(modelbuilder: ModelBuilder)
+# Visit the AST and print metics about the usage of self.
+fun compute_self_metrics(modelbuilder: ModelBuilder)
 do
        print "--- Explicit vs. Implicit Self ---"
        # Visit all the source code to collect data