From 6571af4ce71a8bcdc842d63662e38fbe386be09c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Christophe=20Beaupr=C3=A9?= Date: Thu, 11 Dec 2014 13:50:05 -0500 Subject: [PATCH] nitdoc: Display attribute types. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jean-Christophe Beaupré --- src/doc/doc_model.nit | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- 1.7.9.5