()
| 131 | const loopBody = (code: string, keyword: string, afterKeyword: number): string | null => { |
| 132 | let index = afterKeyword; |
| 133 | const skipSpace = (): void => { |
| 134 | while (index < code.length && /\s/.test(code[index] ?? "")) index += 1; |
| 135 | }; |
| 136 | |
| 137 | // `for (...)` / `while (...)`: step over the header's parens first. A hook in |
| 138 | // the header itself is not the shape we're after. |