[vala/switch-to-gir-gio: 19/35] girparser: Report unused metadata only if repository has been parsed.
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/switch-to-gir-gio: 19/35] girparser: Report unused metadata only if repository has been parsed.
- Date: Thu, 30 Dec 2010 11:43:15 +0000 (UTC)
commit 23bd2dd0973f40cc944eec4023394ca12e11a815
Author: Luca Bruno <lucabru src gnome org>
Date: Mon Nov 22 21:50:39 2010 +0100
girparser: Report unused metadata only if repository has been parsed.
vala/valagirparser.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 4b5282b..3d88ccf 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -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 () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]