Fix adding loads multiple times

This commit is contained in:
Krzosa Karol
2022-06-13 15:24:50 +02:00
parent a929e0b5ec
commit 2503a6d680
3 changed files with 22 additions and 9 deletions

View File

@@ -200,6 +200,7 @@ enum Ast_Decl_State{
};
struct Ast_Scope: Ast{
Intern_String name; // for debugging
Array<Ast_Scope *> implicit_imports;
Array<Ast_Decl *> decls;
Array<Ast *> stmts;
@@ -210,16 +211,12 @@ struct Ast_Scope: Ast{
struct Ast_Module: Ast_Scope{
Intern_String name;
Array<Ast_File *> all_loaded_files;
};
struct Ast_File: Ast_Scope{
Intern_String filename;
B32 global_implicit_load;
String filecontent;
Intern_String name;
};
struct Ast_Decl: Ast{