model: introduce MEntityTree
authorAlexandre Terrasa <alexandre@moz-code.org>
Fri, 18 Dec 2015 03:03:37 +0000 (22:03 -0500)
committerAlexandre Terrasa <alexandre@moz-code.org>
Fri, 18 Dec 2015 05:13:52 +0000 (00:13 -0500)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

src/model/model.nit

index cf8dfb1..3115286 100644 (file)
@@ -119,7 +119,17 @@ redef class Model
        end
 end
 
-# An OrderedTree that can be easily refined for display purposes
+# An OrderedTree bound to MEntity.
+#
+# We introduce a new class so it can be easily refined by tools working
+# with a Model.
+class MEntityTree
+       super OrderedTree[MEntity]
+end
+
+# A MEntityTree borned to MConcern.
+#
+# TODO remove when nitdoc is fully merged with model_collect
 class ConcernsTree
        super OrderedTree[MConcern]
 end