(line: string)
| 391 | } |
| 392 | |
| 393 | function tokenizeReplayLine(line: string): string[] { |
| 394 | const tokens: string[] = []; |
| 395 | let cursor = 0; |
| 396 | while (cursor < line.length) { |
| 397 | cursor = skipReplayWhitespace(line, cursor); |
| 398 | if (cursor >= line.length) break; |
| 399 | const parsed = |
| 400 | line[cursor] === '"' |
| 401 | ? readQuotedReplayToken(line, cursor) |
| 402 | : readBareReplayToken(line, cursor); |
| 403 | tokens.push(parsed.value); |
| 404 | cursor = parsed.nextCursor; |
| 405 | } |
| 406 | return tokens; |
| 407 | } |
| 408 | |
| 409 | function skipReplayWhitespace(line: string, cursor: number): number { |
| 410 | let nextCursor = cursor; |
no test coverage detected