From: Corentin Noël Date: Fri, 17 Jul 2020 08:35:37 +0000 (+0200) Subject: libvaladoc: Support exporting the `class` modifier on methods X-Git-Tag: 0.46.12~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=527bda1d9fd917b8b0854c0935d386d10dcd949e;p=thirdparty%2Fvala.git libvaladoc: Support exporting the `class` modifier on methods --- diff --git a/libvaladoc/api/method.vala b/libvaladoc/api/method.vala index be803db89..93f9c0bd2 100644 --- a/libvaladoc/api/method.vala +++ b/libvaladoc/api/method.vala @@ -142,6 +142,15 @@ public class Valadoc.Api.Method : Symbol, Callable { } } + /** + * Specifies whether this method is a class method + */ + public bool is_class { + get { + return ((Vala.Method) data).binding == Vala.MemberBinding.CLASS; + } + } + /** * Specifies whether this method is a creation method */ @@ -178,6 +187,8 @@ public class Valadoc.Api.Method : Symbol, Callable { if (!is_constructor) { if (is_static) { signature.append_keyword ("static"); + } else if (is_class) { + signature.append_keyword ("class"); } else if (is_abstract) { signature.append_keyword ("abstract"); } else if (is_override) {