nitdoc: Display attribute types.
authorJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Thu, 11 Dec 2014 18:50:05 +0000 (13:50 -0500)
committerJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Fri, 12 Dec 2014 21:29:38 +0000 (16:29 -0500)
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

src/doc/doc_model.nit

index 09883db..aea6972 100644 (file)
@@ -578,6 +578,17 @@ redef class MPropDef
        end
 end
 
+redef class MAttributeDef
+       redef fun tpl_signature do
+               var tpl = new Template
+               if static_mtype != null then
+                       tpl.add ": "
+                       tpl.add static_mtype.tpl_signature
+               end
+               return tpl
+       end
+end
+
 redef class MMethod
        redef fun tpl_signature do
                var tpl = new Template