(i: number)
| 487 | if (singleFileAt.size > 0) { |
| 488 | const pathIdx = [...singleFileAt.keys()]; |
| 489 | const nearestFile = (i: number): string => { |
| 490 | let best = pathIdx[0]!; |
| 491 | for (const p of pathIdx) if (Math.abs(p - i) < Math.abs(best - i)) best = p; |
| 492 | return singleFileAt.get(best)!; |
| 493 | }; |
| 494 | for (let i = 0; i < tokens.length; i++) { |
| 495 | if (consumed.has(i)) continue; |
| 496 | const tok = stripLineTokenPunctuation(tokens[i]!); |
no test coverage detected