(state: ParserState, prefixes: string[])
| 98 | } |
| 99 | |
| 100 | function isDone(state: ParserState, prefixes: string[]): boolean { |
| 101 | if (state.index >= state.lines.length) { |
| 102 | return true |
| 103 | } |
| 104 | |
| 105 | return prefixes.some((prefix) => state.lines[state.index]?.startsWith(prefix)) |
| 106 | } |
| 107 | |
| 108 | function isWrappedAtHeader(line: string): boolean { |
| 109 | return /^@@.*@@(?: .*)?$/.test(line) |
no outgoing calls
no test coverage detected