(position: number = tokens[index]?.start ?? source.length)
| 7 | const replacements: Array<{ readonly token: Token; readonly fragment: Fragment }> = [] |
| 8 | let index = 0 |
| 9 | const fail = (position: number = tokens[index]?.start ?? source.length): never => { |
| 10 | throw new Error(`Unsupported ${kind} syntax at offset ${position}: ${source}`) |
| 11 | } |
| 12 | const tokens = tokenize(source) |
| 13 | for (const token of tokens) { |
| 14 | if (token.kind === "identifier" && token.text.includes("\\")) fail(token.start) |
no outgoing calls
no test coverage detected