about summary refs log tree commit diff
path: root/boot/transpile.c
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2026-05-30 23:04:48 +0200
committerMel <mel@rnrd.eu>2026-05-30 23:04:48 +0200
commitdd9f8fccf405af709c1d655dbec4be1561e990c0 (patch)
tree5f05eff13d01df0e1bd365e0c31a9b4b69284bdc /boot/transpile.c
parent4ec376b67d605910cb7757dc2e15a28a942f59ca (diff)
downloadcatskill-dd9f8fccf405af709c1d655dbec4be1561e990c0.tar.zst
catskill-dd9f8fccf405af709c1d655dbec4be1561e990c0.zip
Define name resolution behavior, clean-up langauge object resolution
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'boot/transpile.c')
-rw-r--r--boot/transpile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/boot/transpile.c b/boot/transpile.c
index e0af3bf..af601f0 100644
--- a/boot/transpile.c
+++ b/boot/transpile.c
@@ -115,7 +115,7 @@ struct Type*
 transpile_type_at(struct Transpiler* transpiler, Type_Id id)
 {
     if (id >= array_length(&transpiler->unit->types.entries)) return nil;
-    return *array_at(struct Type*, &transpiler->unit->types.entries, id);
+    return unit_get_type(transpiler->unit, id);
 }
 
 // the c-side form of a primitive catskill type.
@@ -946,7 +946,7 @@ transpile_unit(struct Transpiler* transpiler, struct Unit* unit)
     // pass 2: type definitions
     visit->table = &transpile_definition_visit_functions;
     FOR_EACH_ARRAY (Type_Id, ordered_id, &unit->type_emission_order) {
-        struct Type* type = *array_at(struct Type*, &unit->types.entries, *ordered_id);
+        struct Type* type = unit_get_type(unit, *ordered_id);
         VISIT(visit_type, type);
     }