+2008-05-27 Jürg Billeter <j@bitron.ch>
+
+ * vala/valasemanticanalyzer.vala:
+ * vala/valathrowstatement.vala:
+ * gobject/valaccodegenerator.vala:
+
+ Fix temporary variable handling for throw statements
+
2008-05-27 Jamie McCracken <jamiemcc@gnome.org>
* vala/valagenieparser.vala:
Added optional indent attribute to allow spaces to be used in lieu of tabs for indents
-
2008-05-27 Jamie McCracken <jamiemcc@gnome.org>
* vala/valagenieparser.vala:
var cfrag = new CCodeFragment ();
- /* declare temporary objects */
- append_temp_decl (cfrag, temp_vars);
-
// method will fail
current_method_inner_error = true;
var cassign = new CCodeAssignment (new CCodeIdentifier ("inner_error"), (CCodeExpression) stmt.error_expression.ccodenode);
add_simple_check (stmt, cfrag);
stmt.ccodenode = cfrag;
+
+ create_temp_decl (stmt, stmt.error_expression.temp_vars);
}
public override void visit_try_statement (TryStatement stmt) {
Report.error (expr.source_reference, "Invalid type for argument 1");
}
}
- expr.value_type = new VoidType ();
}
foreach (MemberInitializer init in expr.get_object_initializer ()) {
/* valathrowstatement.vala
*
- * Copyright (C) 2007 Jürg Billeter
+ * Copyright (C) 2007-2008 Jürg Billeter
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
public override void accept_children (CodeVisitor visitor) {
if (error_expression != null) {
error_expression.accept (visitor);
+
+ visitor.visit_end_full_expression (error_expression);
}
}