[vala/tintou/valadoc-class] libvaladoc: Support exporting the `class` modifier on methods



commit 1c8d81e0c7d03a392148bf01700b1729f96fc6ba
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 | 12 ++++++++++++
 1 file changed, 12 insertions(+)
---
diff --git a/libvaladoc/api/method.vala b/libvaladoc/api/method.vala
index be803db89..2273244bb 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
         */
@@ -184,7 +193,10 @@ public class Valadoc.Api.Method : Symbol, Callable {
                                signature.append_keyword ("override");
                        } else if (is_virtual) {
                                signature.append_keyword ("virtual");
+                       } else if (is_class) {
+                               signature.append_keyword ("class");
                        }
+
                        if (is_inline) {
                                signature.append_keyword ("inline");
                        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]