}
}
- if custom_formatters[v.type] != null_proc {
+ if custom_formatters->has(v.type) {
custom_formatters[v.type](output, formatting, v.data);
return;
}
i32 i = 0;
bh_arr_each(AstTyped *, tag, type->PolyStruct.meta_tags) {
AstTyped* value = *tag;
- assert(value->type);
// Polymorphic structs are weird in this case, because the tag might not be constructed generically for
// the polymorphic structure so it should only be constructed for actual solidified structures.
continue;
}
+ assert(value->type);
+
u32 size = type_size_of(value->type);
bh_buffer_align(&table_buffer, type_alignment_of(value->type));
tag_locations[i] = table_buffer.length;