Fix not top level ast's getting into ordered list. Delete parent nodes
This commit is contained in:
@@ -177,7 +177,6 @@ struct Parse_Ctx:Lexer{
|
||||
Map type_map;
|
||||
|
||||
Ast_Scope *currently_parsed_scope;
|
||||
Array<Ast_Scope *> scopes;
|
||||
Ast_Package *resolving_package;
|
||||
Array<Ast_Decl *> ordered_decls;
|
||||
|
||||
@@ -222,7 +221,6 @@ parse_init(Parse_Ctx *ctx, Allocator *perm_allocator, Allocator *heap_allocator)
|
||||
ctx->perm = perm_allocator;
|
||||
ctx->heap = heap_allocator;
|
||||
ctx->gen = {ctx->perm};
|
||||
ctx->scopes = {ctx->heap};
|
||||
ctx->ordered_decls = {ctx->heap};
|
||||
ctx->type_map = {ctx->heap};
|
||||
bigint_allocator = ctx->perm;
|
||||
|
||||
Reference in New Issue
Block a user