More code to List

This commit is contained in:
Krzosa Karol
2022-09-30 09:56:12 +02:00
parent 0a7fe8caad
commit 91b7b8090f
4 changed files with 21 additions and 21 deletions

View File

@@ -85,7 +85,6 @@ parse_init(Parse_Ctx *ctx, Arena *perm_allocator, Allocator *heap_allocator){
ctx->heap = heap_allocator;
ctx->gen = {ctx->heap};
ctx->type_map = {ctx->heap};
ctx->all_types = {ctx->heap};
ctx->helper_builder= {ctx->heap};
ctx->scope_ids = 1;
bigint_allocator = ctx->perm;
@@ -128,7 +127,7 @@ insert_builtin_into_scope(Ast_Scope *p, String name, Ast_Type *type){
decl->parent_scope = p;
decl->state = DECL_RESOLVED;
insert_into_scope(p, decl);
pctx->all_types.add(type);
add(pctx->perm, &pctx->all_types, type);
}
function void