(body: string, offset: number)
| 524 | } |
| 525 | |
| 526 | function lineContaining(body: string, offset: number): string { |
| 527 | const start = body.lastIndexOf("\n", offset - 1) + 1; |
| 528 | let end = body.indexOf("\n", offset); |
| 529 | if (end === -1) end = body.length; |
| 530 | return body.slice(start, end); |
| 531 | } |
| 532 | |
| 533 | // ── Exit-code helper for the CLI shim ───────────────────────────────────────── |
| 534 |