summaryrefslogtreecommitdiff
path: root/vala/valathrowstatement.vala
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2010-08-07 16:50:40 +0200
committerJürg Billeter <j@bitron.ch>2010-08-10 09:02:53 +0200
commit8b57dfaf55208cad985cb6ff023aed0c3841d876 (patch)
tree9fce3b9ba6d9b9b6d7adb6b853656273ba908908 /vala/valathrowstatement.vala
parent92cb97f4f806fb6362834bf218e8021453c22f07 (diff)
downloadvala-8b57dfaf55208cad985cb6ff023aed0c3841d876.tar.gz
Use emit instead of accept and accept_children in code generator
Diffstat (limited to 'vala/valathrowstatement.vala')
-rw-r--r--vala/valathrowstatement.vala10
1 files changed, 10 insertions, 0 deletions
diff --git a/vala/valathrowstatement.vala b/vala/valathrowstatement.vala
index f94654072..444df3cd9 100644
--- a/vala/valathrowstatement.vala
+++ b/vala/valathrowstatement.vala
@@ -113,6 +113,16 @@ public class Vala.ThrowStatement : CodeNode, Statement {
return !error;
}
+ public override void emit (CodeGenerator codegen) {
+ if (error_expression != null) {
+ error_expression.emit (codegen);
+
+ codegen.visit_end_full_expression (error_expression);
+ }
+
+ codegen.visit_throw_statement (this);
+ }
+
public override void get_defined_variables (Collection<LocalVariable> collection) {
error_expression.get_defined_variables (collection);
}