]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
libvaladoc/api: Hide unbrowsable property getters and setters
authorFlorian Brosch <flo.brosch@gmail.com>
Thu, 16 Aug 2012 22:05:12 +0000 (00:05 +0200)
committerFlorian Brosch <flo.brosch@gmail.com>
Thu, 16 Aug 2012 22:05:12 +0000 (00:05 +0200)
src/libvaladoc/api/propertyaccessor.vala

index 82e1ce475991ebea75bc90d3a203f4e728872562..56e0f4918f943faebda78d820629993790b03caf 100644 (file)
@@ -102,9 +102,15 @@ public class Valadoc.Api.PropertyAccessor : Symbol {
        protected override Inline build_signature () {
                var signature = new SignatureBuilder ();
 
-               if (!is_public) {
+               // FIXME
+               if (!do_document) {
+                       return signature.get ();
+               }
+
+               if (((Property) parent).accessibility != accessibility) {
                        signature.append_keyword (accessibility.to_string ());
                }
+
                if (is_set || is_construct) {
                        if (is_construct) {
                                signature.append_keyword ("construct");