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



commit 32219f5de5328c38420d3c4e6c3aded648c735ea
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 bccbac5fb..dddd96e91 100644
--- a/libvaladoc/api/method.vala
+++ b/libvaladoc/api/method.vala
@@ -193,10 +193,13 @@ public class Valadoc.Api.Method : Member, 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]