Moving more code to list

This commit is contained in:
Krzosa Karol
2022-09-30 09:52:54 +02:00
parent cf619c2ea3
commit 0a7fe8caad
5 changed files with 45 additions and 47 deletions

View File

@@ -157,8 +157,7 @@ struct Lexer{
//
struct Parse_Ctx:Lexer{
Allocator *perm; // Stores: AST, tokens, interns
Arena *perm_arena;
Arena *perm; // Stores: AST, tokens, interns
Allocator *heap;
Arena stage_arena;
@@ -170,9 +169,9 @@ struct Parse_Ctx:Lexer{
Ast_Module *language_base_module;
Array<Ast_File *> files;
Array<Ast_Module *> modules;
Array<Ast_Decl *> ordered_decls;
List<Ast_File *> files;
List<Ast_Module *> modules;
List<Ast_Decl *> ordered_decls;
S32 base_language_ordered_decl_len;
Ast_Scope *currently_parsed_scope;
@@ -180,7 +179,7 @@ struct Parse_Ctx:Lexer{
U32 scope_ids;
U32 scope_visit_id;
Array<String> module_folders;
List<String> module_folders;
String module_folder;
String exe_folder;
String working_folder;