[vala] Implement replace_expression for constant initializers
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Implement replace_expression for constant initializers
- Date: Sat, 5 Jun 2010 08:43:34 +0000 (UTC)
commit e36d521e5511374876ba936b3d3d94ebffd2c470
Author: Jürg Billeter <j bitron ch>
Date: Sat Jun 5 09:58:01 2010 +0200
Implement replace_expression for constant initializers
vala/valaconstant.vala | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/vala/valaconstant.vala b/vala/valaconstant.vala
index b382bcb..6c0ee9e 100644
--- a/vala/valaconstant.vala
+++ b/vala/valaconstant.vala
@@ -122,6 +122,12 @@ public class Vala.Constant : Member, Lockable {
lock_used = used;
}
+ public override void replace_expression (Expression old_node, Expression new_node) {
+ if (initializer == old_node) {
+ initializer = new_node;
+ }
+ }
+
public override void replace_type (DataType old_type, DataType new_type) {
if (type_reference == old_type) {
type_reference = new_type;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]