[vala/0.48] libvaladoc: Support exporting the `class` modifier on methods
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.48] libvaladoc: Support exporting the `class` modifier on methods
- Date: Wed, 22 Jul 2020 11:53:18 +0000 (UTC)
commit 4e2a5d5dbc6c3fa76e5d3067f85640c7684229f6
Author: Corentin Noël <corentin noel collabora com>
Date: Fri Jul 17 10:35:37 2020 +0200
libvaladoc: Support exporting the `class` modifier on methods
libvaladoc/api/method.vala | 11 +++++++++++
1 file changed, 11 insertions(+)
---
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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]