aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index 2f4a37511..470cfe185 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -533,6 +533,7 @@ void init_universal_scope(void) {
// NOTE(bill): No need to free these
gbAllocator a = heap_allocator();
universal_scope = create_scope(nullptr, a);
+ universal_scope->is_package = true;
// Types
for (isize i = 0; i < gb_count_of(basic_types); i++) {
@@ -2961,6 +2962,9 @@ void check_parsed_files(Checker *c) {
for_array(j, p->files.entries) {
AstFile *f = p->files.entries[j].value;
create_scope_from_file(c, f);
+ HashKey key = hash_string(f->fullpath);
+ map_set(&c->info.files, key, f);
+
add_curr_ast_file(c, f);
check_collect_entities(c, f->decls);
}