]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
libvaladoc: is_browsale: check parents
authorFlorian Brosch <flo.brosch@gmail.com>
Wed, 17 Oct 2012 18:23:02 +0000 (20:23 +0200)
committerFlorian Brosch <flo.brosch@gmail.com>
Wed, 17 Oct 2012 18:23:02 +0000 (20:23 +0200)
src/libvaladoc/api/symbol.vala

index 4d48a957e99fc58b3ce851125e799a006dc1c0f2..e4cd1ad52ecdba3277f3bdc1decf14668e0d2907 100644 (file)
@@ -91,6 +91,15 @@ public abstract class Valadoc.Api.Symbol : Node {
                if (!settings._protected && this.is_protected) {
                        return false;
                }
+
+               Item? pos = parent;
+               while (pos != null && pos is Symbol && pos is Namespace == false) {
+                       if (((Symbol) pos).is_browsable (settings) == false) {
+                               return false;
+                       }
+                       pos = pos.parent;
+               }
+
                return true;
        }