ni_nitdoc: filtered Object properties from toplevel properties
authorAlexandre Terrasa <alexandre@moz-code.org>
Tue, 23 Jul 2013 02:14:02 +0000 (22:14 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Tue, 23 Jul 2013 02:14:02 +0000 (22:14 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

src/ni_nitdoc.nit

index f502981..43a3aae 100644 (file)
@@ -739,7 +739,7 @@ class NitdocClass
                        append("<h4>Methods</h4>")
                        append("<ul>")
                        for mprop in mts do
-                               if mprop.mproperty.intro_mclassdef.mclass.name == "Object" then continue
+                               if mclass.name != "Object" and mprop.mproperty.intro_mclassdef.mclass.name == "Object" and mprop.mproperty.visibility <= protected_visibility then continue
                                append(mprop.html_sidebar_item(self))
                        end
                        append("</ul>")