[vala] valagirparser: Ignore the new instance-parameter tag
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] valagirparser: Ignore the new instance-parameter tag
- Date: Sat, 2 Feb 2013 23:43:10 +0000 (UTC)
commit c755bb4bd3b078363193ea41495e4c9f2782a9d8
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sat Feb 2 04:56:39 2013 -0500
valagirparser: Ignore the new instance-parameter tag
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 | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 0a90886..8256ef2 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]