mie: dialect: update Op emitter functions to use mie_emitter

This commit is contained in:
2026-01-25 15:00:37 +00:00
parent fe511011ec
commit 0a791fdfb2
12 changed files with 111 additions and 71 deletions

View File

@@ -9,12 +9,11 @@
static enum mie_status print(struct mie_printer *out, const struct mie_op *op)
{
b_stream_write_char(out->p_stream, ' ');
if (MIE_VECTOR_COUNT(op->op_regions) == 0) {
return MIE_SUCCESS;
}
struct mie_region *region = &op->op_regions.items[0];
mie_printer_print_region(out, region, 0);
struct mie_region *region = mie_op_get_first_region(op);
if (region) {
mie_printer_print_region(out, region, 0);
}
return MIE_SUCCESS;
}