aboutsummaryrefslogtreecommitdiff
path: root/src/checker/checker.cpp
diff options
context:
space:
mode:
authorgingerBill <ginger.bill.22@gmail.com>2016-08-17 12:04:17 +0100
committergingerBill <ginger.bill.22@gmail.com>2016-08-17 12:04:17 +0100
commitc4fe2ace0595ae51f620aaada1807295e41cd6b5 (patch)
tree98f9c7dfc4d21e2e93687566a055deea4502bfa4 /src/checker/checker.cpp
parent511f3744f695d52330651b17f1e3ef49c56b7c76 (diff)
Fix Scoping of proc type decls
Diffstat (limited to 'src/checker/checker.cpp')
-rw-r--r--src/checker/checker.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/checker/checker.cpp b/src/checker/checker.cpp
index 1bc50a890..e75da4c87 100644
--- a/src/checker/checker.cpp
+++ b/src/checker/checker.cpp
@@ -101,7 +101,6 @@ struct Scope {
Scope *prev, *next;
Scope *first_child, *last_child;
Map<Entity *> elements; // Key: String
- gbArray(AstNode *) deferred_stmts;
};
enum ExpressionKind {
@@ -196,7 +195,6 @@ Scope *make_scope(Scope *parent, gbAllocator allocator) {
Scope *s = gb_alloc_item(allocator, Scope);
s->parent = parent;
map_init(&s->elements, gb_heap_allocator());
- gb_array_init(s->deferred_stmts, gb_heap_allocator());
if (parent != NULL && parent != universal_scope) {
DLIST_APPEND(parent->first_child, parent->last_child, s);
}
@@ -513,12 +511,6 @@ void check_procedure_later(Checker *c, AstFile *file, Token token, DeclInfo *dec
gb_array_append(c->procs, info);
}
-void check_add_deferred_stmt(Checker *c, AstNode *stmt) {
- GB_ASSERT(stmt != NULL);
- GB_ASSERT(is_ast_node_stmt(stmt));
- gb_array_append(c->context.scope->deferred_stmts, stmt);
-}
-
void push_procedure(Checker *c, Type *type) {
gb_array_append(c->proc_stack, type);
}