Using For from Array

This commit is contained in:
Krzosa Karol
2023-04-02 12:13:11 +02:00
parent 9dfa539563
commit e2140817df
4 changed files with 21 additions and 23 deletions

View File

@@ -191,7 +191,7 @@ CORE_Static void
parse_all_modules() {
pctx->time.parsing = os_time();
For_Named(pctx->modules, module) {
For2(pctx->modules, module) {
if (module->state != MODULE_REGISTERED)
continue;
@@ -287,8 +287,8 @@ resolve_everything_in_module(Ast_Module *module) {
if (module->state == MODULE_RESOLVED)
return;
pctx->time.typechecking = os_time();
For_Named(module->all_loaded_files, file) {
For_Named(file->decls, decl) {
For2(module->all_loaded_files, file) {
For2(file->decls, decl) {
if (decl->flags & AST_POLYMORPH) continue;
// @cleanup: Why I'm not calling resolve_decl here?