[vala] girparser: Fix reparenting symbols to known containers
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] girparser: Fix reparenting symbols to known containers
- Date: Wed, 25 May 2011 18:59:18 +0000 (UTC)
commit b573b9b623281c7ef4d120da1d512fb2b802732d
Author: Luca Bruno <lucabru src gnome org>
Date: Wed May 25 20:58:45 2011 +0200
girparser: Fix reparenting symbols to known containers
vala/valagirparser.vala | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 7216a43..fa76ffe 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -1572,12 +1572,14 @@ public class Vala.GirParser : CodeVisitor {
if (node == null || (node.symbol != null && !merge)) {
node = new Node (name);
node.new_symbol = true;
+ parent.add_member (node);
+ } else {
+ Node.new_namespaces.remove (node);
}
node.element_type = reader.name;
node.girdata = reader.get_attributes ();
node.metadata = metadata;
node.source_reference = get_current_src ();
- parent.add_member (node);
var gir_name = node.girdata["name"];
if (gir_name == null) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]