[vala/staging] libvaladoc: Properly support the output of async constructors



commit daacd8fc7a2548803397354e2ae41686f7c50c3d
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Thu Feb 14 17:35:04 2019 +0100

    libvaladoc: Properly support the output of async constructors
    
    Fixes https://gitlab.gnome.org/GNOME/vala/issues/753

 libvaladoc/api/method.vala | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/libvaladoc/api/method.vala b/libvaladoc/api/method.vala
index 21ac9befd..be803db89 100644
--- a/libvaladoc/api/method.vala
+++ b/libvaladoc/api/method.vala
@@ -188,10 +188,13 @@ public class Valadoc.Api.Method : Symbol, Callable {
                        if (is_inline) {
                                signature.append_keyword ("inline");
                        }
-                       if (is_yields) {
-                               signature.append_keyword ("async");
-                       }
+               }
 
+               if (is_yields) {
+                       signature.append_keyword ("async");
+               }
+
+               if (!is_constructor) {
                        signature.append_content (return_type.signature);
                }
 


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