Fix adding loads multiple times
This commit is contained in:
5
ast.cpp
5
ast.cpp
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user