From 5924289882ffbe4188c773de3ea673a006c834ef Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Christophe=20Beaupr=C3=A9?= Date: Fri, 24 Mar 2017 00:39:52 -0400 Subject: [PATCH] model: Add precision to the documentation of type metrics MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jean-Christophe Beaupré --- src/model/model.nit | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/model/model.nit b/src/model/model.nit index 0d8d6ad..a7f570b 100644 --- a/src/model/model.nit +++ b/src/model/model.nit @@ -1136,6 +1136,7 @@ abstract class MType # * H[G[A], B] -> 3 # # Formal types have a depth of 1. + # Only `MClassType` and `MFormalType` nodes are counted. fun depth: Int do return 1 @@ -1149,6 +1150,7 @@ abstract class MType # * H[G[A], B] -> 4 # # Formal types have a length of 1. + # Only `MClassType` and `MFormalType` nodes are counted. fun length: Int do return 1 -- 1.7.9.5