]> 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>
Tue, 26 Feb 2019 16:53:41 +0000 (17:53 +0100)
Fixes https://gitlab.gnome.org/GNOME/vala/issues/753

libvaladoc/api/method.vala

index 9c12c8f16d62c04e787cbbf14991189cf2baee6c..de88d6ec60a5fdc3f90e706903b192955733466e 100644 (file)
@@ -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);
                }