From 9509edde685c2e6cacaf5bc99db0cac60e99185a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Christophe=20Beaupr=C3=A9?= Date: Mon, 1 Dec 2014 14:17:08 -0500 Subject: [PATCH] doc: Fix the presentation of the inner classes. 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 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/doc/doc_model.nit b/src/doc/doc_model.nit index 0a0e60e..4523ec3 100644 --- a/src/doc/doc_model.nit +++ b/src/doc/doc_model.nit @@ -610,6 +610,28 @@ redef class MVirtualTypeDef end end +redef class MInnerClass + redef fun nitdoc_url do return inner.nitdoc_url + redef fun tpl_signature do return inner.tpl_signature +end + +redef class MInnerClassDef + redef fun nitdoc_url do return inner.nitdoc_url + + redef fun tpl_anchor do return inner.tpl_anchor + redef fun tpl_link do return inner.tpl_link + redef fun tpl_signature do return inner.tpl_signature + + redef fun tpl_definition do + var tpl = new TplClassDefinition + tpl.namespace = mclassdef.tpl_namespace + if mdoc != null then + tpl.comment = mdoc.tpl_comment + end + return tpl + end +end + redef class MType fun tpl_signature: Template is abstract end -- 1.7.9.5