diff options
Diffstat (limited to 'src/ast.c')
-rw-r--r-- | src/ast.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -421,13 +421,10 @@ int scope_add_child(Scope *self, Ast *child) { } void scope_resolve(Scope *self, AstCompilerContext *context) { - Ast **ast; - Ast **ast_end; - Scope *prev_scope; + Ast **ast = buffer_begin(&self->ast_objects); + Ast **ast_end = buffer_end(&self->ast_objects); + Scope *prev_scope = context->scope; - ast = buffer_begin(&self->ast_objects); - ast_end = buffer_end(&self->ast_objects); - prev_scope = context->scope; context->scope = self; for(; ast != ast_end; ++ast) { ast_resolve(*ast, context); |