[vala] GIR parser: Add support for static methods in inte



commit d13dd7c29e272f519ac5d24bd711fdc8fe44c2e2
Author: Jürg Billeter <j bitron ch>
Date:   Tue Mar 3 18:44:46 2009 +0100

    GIR parser: Add support for static methods in interfaces
    
    Patch by Didier Villevalois, fixes part of bug 559704
---
 vapigen/valagirparser.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/vapigen/valagirparser.vala b/vapigen/valagirparser.vala
index 17b37bb..d8b33ad 100644
--- a/vapigen/valagirparser.vala
+++ b/vapigen/valagirparser.vala
@@ -626,6 +626,8 @@ public class Vala.GirParser : CodeVisitor {
 				iface.add_property (parse_property ());
 			} else if (reader.name == "callback") {
 				vmethods.add (parse_method ("callback"));
+			} else if (reader.name == "function") {
+				methods.add (parse_method ("function"));
 			} else if (reader.name == "method") {
 				methods.add (parse_method ("method"));
 			} else if (reader.name == "glib:signal") {



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