Big improvement to the -threaded-checker code, unifying the logic and simplify behaviour

This commit is contained in:
gingerBill
2021-07-13 16:58:40 +01:00
parent ed5a4afc8c
commit cec2309504
4 changed files with 108 additions and 46 deletions

View File

@@ -443,7 +443,7 @@ bool find_or_generate_polymorphic_procedure(CheckerContext *c, Entity *base_enti
}
// NOTE(bill): Check the newly generated procedure body
check_procedure_later(nctx.checker, proc_info);
check_procedure_later(&nctx, proc_info);
return true;
}
@@ -6497,7 +6497,7 @@ ExprKind check_expr_base_internal(CheckerContext *c, Operand *o, Ast *node, Type
}
pl->decl = decl;
check_procedure_later(ctx.checker, ctx.file, empty_token, decl, type, pl->body, pl->tags);
check_procedure_later(&ctx, ctx.file, empty_token, decl, type, pl->body, pl->tags);
}
check_close_scope(&ctx);