[vala/0.40] libvaladoc: Match property signature with vala's codewriter



commit 4aa40579376ac9984fe9e1a478a975182455c683
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Wed Nov 14 14:49:22 2018 +0100

    libvaladoc: Match property signature with vala's codewriter

 libvaladoc/api/property.vala         | 8 ++++----
 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 d981c9027..60e2156f7 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 173edd89d..efdc4e6c5 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");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]