mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 08:08:50 +00:00
Set a flag for delayed checking
This commit is contained in:
+1
-2
@@ -5513,8 +5513,6 @@ gb_internal void check_import_entities(Checker *c) {
|
|||||||
for_array(i, pkg->files) {
|
for_array(i, pkg->files) {
|
||||||
AstFile *f = pkg->files[i];
|
AstFile *f = pkg->files[i];
|
||||||
reset_checker_context(&ctx, f, &untyped);
|
reset_checker_context(&ctx, f, &untyped);
|
||||||
ctx.collect_delayed_decls = false;
|
|
||||||
|
|
||||||
correct_type_aliases_in_scope(&ctx, pkg->scope);
|
correct_type_aliases_in_scope(&ctx, pkg->scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -5522,6 +5520,7 @@ gb_internal void check_import_entities(Checker *c) {
|
|||||||
AstFile *f = pkg->files[i];
|
AstFile *f = pkg->files[i];
|
||||||
reset_checker_context(&ctx, f, &untyped);
|
reset_checker_context(&ctx, f, &untyped);
|
||||||
|
|
||||||
|
ctx.collect_delayed_decls = true;
|
||||||
for (Ast *decl : f->delayed_decls_queues[AstDelayQueue_ForeignBlock]) {
|
for (Ast *decl : f->delayed_decls_queues[AstDelayQueue_ForeignBlock]) {
|
||||||
check_add_foreign_block_decl(&ctx, decl);
|
check_add_foreign_block_decl(&ctx, decl);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user