ni_nitdoc: filtered imported init
authorAlexandre Terrasa <alexandre@moz-code.org>
Fri, 26 Jul 2013 21:37:36 +0000 (17:37 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Fri, 26 Jul 2013 21:37:36 +0000 (17:37 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

src/ni_nitdoc.nit

index cb0eef3..00987c2 100644 (file)
@@ -787,6 +787,7 @@ class NitdocClass
                        append("<h4>Constructors</h4>")
                        append("<ul>")
                        for mprop in cts do
+                               if mprop.mproperty.name == "init" and mprop.mclassdef.mclass != mclass then continue
                                mprop.html_sidebar_item(self)
                        end
                        append("</ul>")