mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-03 22:28:46 +00:00
Minor cleanup for builtin scope/pkg
This commit is contained in:
+9
-2
@@ -224,14 +224,14 @@ struct Scope {
|
||||
PtrSet<Scope *> imported;
|
||||
bool is_proc;
|
||||
bool is_global;
|
||||
bool is_package;
|
||||
bool is_pkg;
|
||||
bool is_file;
|
||||
bool is_init;
|
||||
bool is_struct;
|
||||
bool has_been_imported; // This is only applicable to file scopes
|
||||
|
||||
union {
|
||||
AstPackage *package;
|
||||
AstPackage *pkg;
|
||||
AstFile * file;
|
||||
};
|
||||
};
|
||||
@@ -347,6 +347,13 @@ struct Checker {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
gb_global AstPackage *builtin_pkg = nullptr;
|
||||
gb_global Scope * builtin_scope = nullptr;
|
||||
|
||||
|
||||
|
||||
HashKey hash_node (Ast *node) { return hash_pointer(node); }
|
||||
HashKey hash_ast_file (AstFile *file) { return hash_pointer(file); }
|
||||
HashKey hash_entity (Entity *e) { return hash_pointer(e); }
|
||||
|
||||
Reference in New Issue
Block a user