summaryrefslogtreecommitdiff
path: root/vala/valathrowstatement.vala
diff options
context:
space:
mode:
authorJuerg Billeter <j@bitron.ch>2007-07-13 09:27:38 +0000
committerJürg Billeter <juergbi@src.gnome.org>2007-07-13 09:27:38 +0000
commit83363b2b4661a88a2cd703003341438dfceba869 (patch)
tree33de93210b6151a1380ba800cb5ac09982d4df1c /vala/valathrowstatement.vala
parent0d360653213a4c83506d7ec7764a7d59b21b4c4e (diff)
downloadvala-83363b2b4661a88a2cd703003341438dfceba869.tar.gz
move iteration of throw statements, try statements, and catch clauses from
2007-07-13 Juerg Billeter <j@bitron.ch> * vala/valacatchclause.vala, vala/valacodevisitor.vala, vala/valamemorymanager.vala, vala/valasemanticanalyzer.vala, vala/valasymbolbuilder.vala, vala/valasymbolresolver.vala, vala/valathrowstatement.vala, vala/valatrystatement.vala, gobject/valacodegenerator.vala: move iteration of throw statements, try statements, and catch clauses from accept to accept_children method, fixes nested try statements * gobject/valacodegenerator.vala: clear unhandled error instead of returning from the current function * vala/valasemanticanalyzer.vala: generic pointer is compatible with generic pointer * vapi/glib-2.0.vala: add some more default values svn path=/trunk/; revision=354
Diffstat (limited to 'vala/valathrowstatement.vala')
-rw-r--r--vala/valathrowstatement.vala8
1 files changed, 4 insertions, 4 deletions
diff --git a/vala/valathrowstatement.vala b/vala/valathrowstatement.vala
index 3a69ae520..f89854e67 100644
--- a/vala/valathrowstatement.vala
+++ b/vala/valathrowstatement.vala
@@ -52,17 +52,17 @@ public class Vala.ThrowStatement : Statement {
*/
public ThrowStatement (construct Expression! error_expression, construct SourceReference source_reference = null) {
}
-
+
public override void accept (CodeVisitor! visitor) {
- visitor.visit_begin_throw_statement (this);
+ visitor.visit_throw_statement (this);
+ }
+ public override void accept_children (CodeVisitor! visitor) {
if (error_expression != null) {
error_expression.accept (visitor);
visitor.visit_end_full_expression (error_expression);
}
-
- visitor.visit_end_throw_statement (this);
}
public override void replace (CodeNode! old_node, CodeNode! new_node) {