[vala/switch-to-gir: 23/25] 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: 23/25] girparser: Report unused metadata only if repository has been parsed.
- Date: Sat, 18 Dec 2010 09:58:44 +0000 (UTC)
commit 582946764bde28344f06ce1316d90fc360ddf1be
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 b9513b5..21b6c47 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -600,8 +600,6 @@ public class Vala.GirParser : CodeVisitor {
next ();
parse_repository ();
- report_unused_metadata (metadata);
-
reader = null;
this.current_source_file = null;
}
@@ -1300,6 +1298,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]