[vala/switch-to-gir: 23/51] girparser: Never skip symbol if skip=false is explicited in metadata.



commit 1ee9c33e5e97a01826e4dda8c678c1d9af0ae973
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 a3c7ab9..d3dafd3 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]