From e36d521e5511374876ba936b3d3d94ebffd2c470 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrg=20Billeter?= Date: Sat, 5 Jun 2010 09:58:01 +0200 Subject: [PATCH] Implement replace_expression for constant initializers --- vala/valaconstant.vala | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vala/valaconstant.vala b/vala/valaconstant.vala index b382bcb59..6c0ee9e26 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; -- 2.47.3