[vala/switch-to-gir: 8/49] girparser: Skip priv fields
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/switch-to-gir: 8/49] girparser: Skip priv fields
- Date: Thu, 10 Mar 2011 21:39:18 +0000 (UTC)
commit 4388b3a8e84a9feda80fc3adfd0c112f416b176f
Author: Luca Bruno <lucabru src gnome org>
Date: Wed Nov 17 20:16:46 2010 +0100
girparser: Skip priv fields
vala/valagirparser.vala | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 0ebca05..488390a 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -1957,7 +1957,10 @@ public class Vala.GirParser : CodeVisitor {
// first field is guaranteed to be the parent instance
skip_element ();
} else {
- add_symbol_info (parse_field ());
+ var field = parse_field ();
+ if (field.name != "priv") {
+ add_symbol_info (field);
+ }
}
first_field = false;
} else if (reader.name == "property") {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]