summaryrefslogtreecommitdiff
path: root/vala/valaswitchstatement.vala
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2008-11-30 13:34:47 +0000
committerJürg Billeter <juergbi@src.gnome.org>2008-11-30 13:34:47 +0000
commit778590173491eb9009700d7a0279df4e1382680c (patch)
tree2abdeff32408ef16adbfd72f04161a0158b0b1ea /vala/valaswitchstatement.vala
parent91d30943bf2a89cc41f049b9e325a1d6038a296a (diff)
downloadvala-778590173491eb9009700d7a0279df4e1382680c.tar.gz
Separate visiting switch sections from visiting switch statements
2008-11-30 Jürg Billeter <j@bitron.ch> * vala/valanullchecker.vala: * vala/valaswitchlabel.vala: * vala/valaswitchstatement.vala: * vala/valasymbolresolver.vala: * gobject/valaccodecontrolflowmodule.vala: * gobject/valaccodegenerator.vala: * gobject/valaccodemodule.vala: Separate visiting switch sections from visiting switch statements svn path=/trunk/; revision=2098
Diffstat (limited to 'vala/valaswitchstatement.vala')
-rw-r--r--vala/valaswitchstatement.vala8
1 files changed, 5 insertions, 3 deletions
diff --git a/vala/valaswitchstatement.vala b/vala/valaswitchstatement.vala
index 559c94259..e3c272752 100644
--- a/vala/valaswitchstatement.vala
+++ b/vala/valaswitchstatement.vala
@@ -73,8 +73,12 @@ public class Vala.SwitchStatement : CodeNode, Statement {
public Gee.List<SwitchSection> get_sections () {
return new ReadOnlyList<SwitchSection> (sections);
}
-
+
public override void accept (CodeVisitor visitor) {
+ visitor.visit_switch_statement (this);
+ }
+
+ public override void accept_children (CodeVisitor visitor) {
expression.accept (visitor);
visitor.visit_end_full_expression (expression);
@@ -82,8 +86,6 @@ public class Vala.SwitchStatement : CodeNode, Statement {
foreach (SwitchSection section in sections) {
section.accept (visitor);
}
-
- visitor.visit_switch_statement (this);
}
public override void replace_expression (Expression old_node, Expression new_node) {