[vala/switch-to-gir: 23/47] 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: 23/47] girparser: Never skip symbol if skip=false is explicited in metadata.
- Date: Thu, 6 Jan 2011 11:51:29 +0000 (UTC)
commit 31858ef1c9fd12ee4b4754d674c1267e0febed39
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 06bd827..894168f 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -1010,12 +1010,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]