[valadoc] libvaladoc/api: Hide unbrowsable property getters and setters
- From: Florian Brosch <flobrosch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [valadoc] libvaladoc/api: Hide unbrowsable property getters and setters
- Date: Fri, 17 Aug 2012 23:25:39 +0000 (UTC)
commit 96be7e81f00cd7d01a45d59793f02274a0dd4395
Author: Florian Brosch <flo brosch gmail com>
Date: Fri Aug 17 00:05:12 2012 +0200
libvaladoc/api: Hide unbrowsable property getters and setters
src/libvaladoc/api/propertyaccessor.vala | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/libvaladoc/api/propertyaccessor.vala b/src/libvaladoc/api/propertyaccessor.vala
index 82e1ce4..56e0f49 100644
--- a/src/libvaladoc/api/propertyaccessor.vala
+++ b/src/libvaladoc/api/propertyaccessor.vala
@@ -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");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]