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



commit 3b626ad037a2715391977e9a54cee73fbb654cd3
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 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");


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