Get the primary line number from any BatchOperation variant.
(op: BatchOperation)
| 71 | |
| 72 | /** Get the primary line number from any BatchOperation variant. */ |
| 73 | function getOpLine(op: BatchOperation): number { |
| 74 | return op.op === "reorder" ? op.fromLine : op.line; |
| 75 | } |
| 76 | |
| 77 | // ── Types ──────────────────────────────────────────────────────────────── |
| 78 |