diff options
| author | Mel <mel@rnrd.eu> | 2026-05-04 14:52:08 +0200 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2026-05-04 14:52:08 +0200 |
| commit | 222e8577e989af856019ddcb8fec2387764d9ffc (patch) | |
| tree | 8157236fad5d8da629a29ee6133e3edd067e3e1b /boot/visit | |
| parent | a348f07b65a60226da53215d3767caf7688cb8b8 (diff) | |
| download | catskill-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')
| -rw-r--r-- | boot/visit/ir.c | 5 |
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(")"); } |
