From 222e8577e989af856019ddcb8fec2387764d9ffc Mon Sep 17 00:00:00 2001 From: Mel Date: Mon, 4 May 2026 14:52:08 +0200 Subject: Complete lowering pass 1, fully collect all top-level declarations and their dependencies Signed-off-by: Mel --- boot/visit/ir.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'boot/visit/ir.c') diff --git a/boot/visit/ir.c b/boot/visit/ir.c index 3880b36..20296e3 100644 --- a/boot/visit/ir.c +++ b/boot/visit/ir.c @@ -560,6 +560,11 @@ printer_visit_type(struct Visit* visit, struct Type* type) PRINT("(type %lu %s", type->id, string_c_str(type->name)); if (type->synthetic) PRINT(" synthetic"); walk_type(visit, type); + if (array_length(&type->depends_on) > 0) { + PRINT(" (depends_on"); + FOR_EACH_ARRAY(Type_Id, dep, &type->depends_on, { PRINT(" %lu", dep); }) + PRINT(")"); + } PRINT(")"); } -- cgit 1.4.1