diff options
Diffstat (limited to 'vala/valathrowstatement.vala')
-rw-r--r-- | vala/valathrowstatement.vala | 10 |
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); } |