[vala] Set parent_node for resolved base types
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Set parent_node for resolved base types
- Date: Sat, 25 Jun 2016 14:15:32 +0000 (UTC)
commit 0ea5a8a9233d1ce0a4121cf31ceb1f976316085c
Author: Matthias Berndt <matthias_berndt gmx de>
Date: Mon May 16 14:30:55 2016 +0200
Set parent_node for resolved base types
vala/valaclass.vala | 1 +
vala/valainterface.vala | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/vala/valaclass.vala b/vala/valaclass.vala
index 5dc7c1a..b983319 100644
--- a/vala/valaclass.vala
+++ b/vala/valaclass.vala
@@ -561,6 +561,7 @@ public class Vala.Class : ObjectTypeSymbol {
for (int i = 0; i < base_types.size; i++) {
if (base_types[i] == old_type) {
base_types[i] = new_type;
+ new_type.parent_node = this;
return;
}
}
diff --git a/vala/valainterface.vala b/vala/valainterface.vala
index 43c6f5c..621c6e8 100644
--- a/vala/valainterface.vala
+++ b/vala/valainterface.vala
@@ -356,6 +356,7 @@ public class Vala.Interface : ObjectTypeSymbol {
for (int i = 0; i < prerequisites.size; i++) {
if (prerequisites[i] == old_type) {
prerequisites[i] = new_type;
+ new_type.parent_node = this;
return;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]