Using For from Array
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user