From: Jean-Christophe Beaupré Date: Thu, 11 Dec 2014 18:50:05 +0000 (-0500) Subject: nitdoc: Display attribute types. X-Git-Tag: v0.7~42^2 X-Git-Url: http://nitlanguage.org nitdoc: Display attribute types. Signed-off-by: Jean-Christophe Beaupré --- diff --git a/src/doc/doc_model.nit b/src/doc/doc_model.nit index 09883db..aea6972 100644 --- a/src/doc/doc_model.nit +++ b/src/doc/doc_model.nit @@ -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