diff options
author | Juerg Billeter <j@bitron.ch> | 2007-07-13 09:27:38 +0000 |
---|---|---|
committer | Jürg Billeter <juergbi@src.gnome.org> | 2007-07-13 09:27:38 +0000 |
commit | 83363b2b4661a88a2cd703003341438dfceba869 (patch) | |
tree | 33de93210b6151a1380ba800cb5ac09982d4df1c /vala/valathrowstatement.vala | |
parent | 0d360653213a4c83506d7ec7764a7d59b21b4c4e (diff) | |
download | vala-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.vala | 8 |
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) { |