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



commit d8bcec3d26ce4f6f87321f41bc8eab4f629872b5
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]