* Replace every char in a slice with spaces, but keep newlines so line * numbers computed downstream remain valid.
(buf: string[], start: number, end: number, src: string)
| 70 | * numbers computed downstream remain valid. |
| 71 | */ |
| 72 | function blankRange(buf: string[], start: number, end: number, src: string): void { |
| 73 | for (let i = start; i < end; i++) { |
| 74 | buf[i] = src[i] === '\n' ? '\n' : ' '; |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | // ---------- Python ---------- |
| 79 |
no outgoing calls
no test coverage detected