IR_STEPS

tcmts.core.migrate.IR_STEPS · #tujuwxy3 · term · runs anywhere

How the IR of each format becomes the next one's: IR_STEPS[n] takes format n to n + 1.

import type { IR } from "#codebase/tcmts/core/hash";
import { dropUncontinuedParens } from "#codebase/tcmts/core/migrate";

export const IR_STEPS: Record<number, (ir: IR) => IR> = {
  1: dropUncontinuedParens,
}

uses

used by