]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girparser: Never skip symbol if skip=false is explicited in metadata.
authorLuca Bruno <lucabru@src.gnome.org>
Tue, 23 Nov 2010 20:57:30 +0000 (21:57 +0100)
committerLuca Bruno <lucabru@src.gnome.org>
Mon, 4 Apr 2011 13:14:44 +0000 (15:14 +0200)
vala/valagirparser.vala

index a3c7ab9bb6a2de5c2bb5c87e7bfcd4c489506f8b..d3dafd3f41ebc660e161395191a1f243ef292844 100644 (file)
@@ -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;
                }