]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
valagirparser: Ignore the new instance-parameter tag
authorJasper St. Pierre <jstpierre@mecheye.net>
Sat, 2 Feb 2013 09:56:39 +0000 (04:56 -0500)
committerColin Walters <walters@verbum.org>
Sat, 2 Feb 2013 22:44:38 +0000 (17:44 -0500)
g-ir-scanner will now start emitting the instance parameter; since
vala doesn't need this, just skip it.

https://bugzilla.gnome.org/show_bug.cgi?id=693054

vala/valagirparser.vala

index 0a9088606a334e7597ddfb1f3b288d8ac733b1e7..8256ef29c0e79619d9277d01c36a24017b0d8bc9 100644 (file)
@@ -2896,6 +2896,11 @@ public class Vala.GirParser : CodeVisitor {
                        next ();
 
                        while (current_token == MarkupTokenType.START_ELEMENT) {
+                               if (reader.name == "instance-parameter") {
+                                       skip_element ();
+                                       continue;
+                               }
+
                                if (!push_metadata ()) {
                                        skip_element ();
                                        continue;