diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-11-14 14:49:22 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-11-14 20:11:04 +0100 |
commit | 7a5cb5986b707b315bec96c5784e1cd3ff8f9f5b (patch) | |
tree | 69080be715b51c45785af6d19ebb68e8264fd905 /libvaladoc | |
parent | bf8c09bf3a5e637880941ee6f59a73e934cf609e (diff) | |
download | vala-7a5cb5986b707b315bec96c5784e1cd3ff8f9f5b.tar.gz |
libvaladoc: Match property signature with vala's codewriter
Diffstat (limited to 'libvaladoc')
-rw-r--r-- | libvaladoc/api/property.vala | 8 | ||||
-rw-r--r-- | libvaladoc/api/propertyaccessor.vala | 7 |
2 files changed, 9 insertions, 6 deletions
diff --git a/libvaladoc/api/property.vala b/libvaladoc/api/property.vala index c50b2b271..ad4c76405 100644 --- a/libvaladoc/api/property.vala +++ b/libvaladoc/api/property.vala @@ -169,14 +169,14 @@ public class Valadoc.Api.Property : Member { signature.append_symbol (this); signature.append ("{"); - if (setter != null && setter.do_document) { - signature.append_content (setter.signature); - } - if (getter != null && getter.do_document) { signature.append_content (getter.signature); } + if (setter != null && setter.do_document) { + signature.append_content (setter.signature); + } + signature.append ("}"); return signature.get (); diff --git a/libvaladoc/api/propertyaccessor.vala b/libvaladoc/api/propertyaccessor.vala index 89de374bb..59a90bad7 100644 --- a/libvaladoc/api/propertyaccessor.vala +++ b/libvaladoc/api/propertyaccessor.vala @@ -113,12 +113,15 @@ public class Valadoc.Api.PropertyAccessor : Symbol { } if (is_set || is_construct) { - if (is_construct) { - signature.append_keyword ("construct"); + if (is_owned) { + signature.append_keyword ("owned"); } if (is_set) { signature.append_keyword ("set"); } + if (is_construct) { + signature.append_keyword ("construct"); + } } else if (is_get) { if (is_owned) { signature.append_keyword ("owned"); |