From: Rico Tzschichholz Date: Thu, 14 Feb 2019 16:35:04 +0000 (+0100) Subject: libvaladoc: Properly support the output of async constructors X-Git-Tag: 0.42.6~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3accdc68d021c6e289ee6e3873558be625b4387;p=thirdparty%2Fvala.git libvaladoc: Properly support the output of async constructors Fixes https://gitlab.gnome.org/GNOME/vala/issues/753 --- diff --git a/libvaladoc/api/method.vala b/libvaladoc/api/method.vala index 9c12c8f16..de88d6ec6 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); }