From 8b57dfaf55208cad985cb6ff023aed0c3841d876 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Billeter?= Date: Sat, 7 Aug 2010 16:50:40 +0200 Subject: Use emit instead of accept and accept_children in code generator --- vala/valasliceexpression.vala | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'vala/valasliceexpression.vala') diff --git a/vala/valasliceexpression.vala b/vala/valasliceexpression.vala index 7713f738d..77c574397 100644 --- a/vala/valasliceexpression.vala +++ b/vala/valasliceexpression.vala @@ -1,7 +1,7 @@ /* valasliceexpression.vala * * Copyright (C) 2009 Robin Sonefors - * Copyright (C) 2009 Jürg Billeter + * Copyright (C) 2009-2010 Jürg Billeter * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -163,6 +163,17 @@ public class Vala.SliceExpression : Expression { return !error; } + public override void emit (CodeGenerator codegen) { + container.emit (codegen); + + start.emit (codegen); + stop.emit (codegen); + + codegen.visit_slice_expression (this); + + codegen.visit_expression (this); + } + public override void get_defined_variables (Collection collection) { container.get_defined_variables (collection); start.get_defined_variables (collection); -- cgit v1.2.1