[vala/switch-to-gir: 25/26] girparser: Never skip symbol if skip=false is explicited in metadata.
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/switch-to-gir: 25/26] girparser: Never skip symbol if skip=false is explicited in metadata.
- Date: Sun, 19 Dec 2010 22:00:32 +0000 (UTC)
commit 7466d6a1f4bb36a719626d0f7e952bd3ae82c7a5
Author: Luca Bruno <lucabru src gnome org>
Date: Tue Nov 23 21:57:30 2010 +0100
girparser: Never skip symbol if skip=false is explicited in metadata.
vala/valagirparser.vala | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 5ad9f0e..26eff63 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -1008,12 +1008,13 @@ public class Vala.GirParser : CodeVisitor {
}
bool push_metadata () {
- // skip?
- if (reader.get_attribute ("introspectable") == "0") {
- return false;
- }
var new_metadata = get_current_metadata ();
- if (new_metadata.get_bool (ArgumentType.SKIP)) {
+ // skip ?
+ if (new_metadata.has_argument (ArgumentType.SKIP)) {
+ if (new_metadata.get_bool (ArgumentType.SKIP)) {
+ return false;
+ }
+ } else if (reader.get_attribute ("introspectable") == "0") {
return false;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]