about summary refs log tree commit diff
path: root/boot/visit/ir.c
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2026-05-04 14:52:08 +0200
committerMel <mel@rnrd.eu>2026-05-04 14:52:08 +0200
commit222e8577e989af856019ddcb8fec2387764d9ffc (patch)
tree8157236fad5d8da629a29ee6133e3edd067e3e1b /boot/visit/ir.c
parenta348f07b65a60226da53215d3767caf7688cb8b8 (diff)
downloadcatskill-222e8577e989af856019ddcb8fec2387764d9ffc.tar.zst
catskill-222e8577e989af856019ddcb8fec2387764d9ffc.zip
Complete lowering pass 1, fully collect all top-level declarations and their dependencies
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'boot/visit/ir.c')
-rw-r--r--boot/visit/ir.c5
1 files changed, 5 insertions, 0 deletions
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(")");
 }