Fix defer_lower to handle return statements, starting on obj_lower which has now taken over calling destruct for declared varaibles. Some of the code from the c_generator has been commented out or bypassed to use the new system - it should be removed when it's complete.
This commit is contained in:
@@ -417,6 +417,11 @@ obj template (Object) {
|
||||
instantiated_map == other.instantiated_map && is_function == other.is_function
|
||||
}
|
||||
}
|
||||
fun ast_code_block_ptr(stmt: *ast_node): *ast_node {
|
||||
var to_ret = ast_code_block_ptr()
|
||||
to_ret->code_block.children.add(stmt)
|
||||
return to_ret
|
||||
}
|
||||
fun ast_code_block_ptr(): *ast_node {
|
||||
var to_ret.construct(): code_block
|
||||
var ptr = new<ast_node>()
|
||||
|
||||
Reference in New Issue
Block a user