]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
libvaladoc: Properly support the output of async constructors
authorRico Tzschichholz <ricotz@ubuntu.com>
Thu, 14 Feb 2019 16:35:04 +0000 (17:35 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 14 Feb 2019 16:38:04 +0000 (17:38 +0100)
Fixes https://gitlab.gnome.org/GNOME/vala/issues/753

libvaladoc/api/method.vala

index 21ac9befd76d22e0b044f7307fe9890d8de65137..be803db89b4501610b448d59d44ab8bad82deb6f 100644 (file)
@@ -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);
                }