]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girparser: Report unused metadata only if repository has been parsed.
authorLuca Bruno <lucabru@src.gnome.org>
Mon, 22 Nov 2010 20:50:39 +0000 (21:50 +0100)
committerLuca Bruno <lucabru@src.gnome.org>
Mon, 4 Apr 2011 13:14:43 +0000 (15:14 +0200)
vala/valagirparser.vala

index 0e16deded05e16a19f0d422d229b2f4daad046f1..d8fdab6737a5c67a0a9d31bec7993a6d4455405d 100644 (file)
@@ -602,8 +602,6 @@ public class Vala.GirParser : CodeVisitor {
                next ();
                parse_repository ();
 
-               report_unused_metadata (metadata);
-
                reader = null;
                this.current_source_file = null;
        }
@@ -1302,6 +1300,8 @@ public class Vala.GirParser : CodeVisitor {
                        }
                }
                end_element ("repository");
+
+               report_unused_metadata (metadata);
        }
 
        void parse_include () {