diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-09-24 22:55:17 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-09-24 22:55:17 +0100 |
| commit | 70f3361a343ad6e2f53937d1949a2f1b6e9ef227 (patch) | |
| tree | 00f7e112c7104d807e83fb4af25a23c313991647 /src/checker/expr.cpp | |
| parent | ff229054a19a566309a1fea56384bfcdcd9fddad (diff) | |
Bug Fixes: some assertions; variable inits;
Remove some dead code
Diffstat (limited to 'src/checker/expr.cpp')
| -rw-r--r-- | src/checker/expr.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/checker/expr.cpp b/src/checker/expr.cpp index f6670eb4d..429b5e6ba 100644 --- a/src/checker/expr.cpp +++ b/src/checker/expr.cpp @@ -806,22 +806,6 @@ void check_identifier(Checker *c, Operand *o, AstNode *n, Type *named_type, Cycl error(n->Ident, "`_` cannot be used as a value type"); } else { auto *entries = c->context.scope->elements.entries; - // gb_for_array(i, entries) { - // Entity *elem = entries[i].value; - // if (i > 0) { - // gb_printf(", "); - // } - // gb_printf("%.*s", LIT(elem->token.string)); - // } - // for (Scope *s = c->context.scope; s != NULL; s = s->parent) { - // Entity *elem = s->elements.entries[0].value; - // if (elem == NULL) continue; - // gb_printf("%.*s\n", LIT(elem->token.pos.file)); - // } - // gb_printf("\n"); - - - // Entity *e = scope_lookup_entity(c->context.scope, n->Ident.string); error(n->Ident, "Undeclared name: %.*s", LIT(n->Ident.string)); } |