(lines: string[])
| 106 | } |
| 107 | |
| 108 | function getLineStartOffsets(lines: string[]): number[] { |
| 109 | const offsets: number[] = [] |
| 110 | let offset = 0 |
| 111 | for (const line of lines) { |
| 112 | offsets.push(offset) |
| 113 | offset += line.length + 1 |
| 114 | } |
| 115 | return offsets |
| 116 | } |
| 117 | |
| 118 | function sliceContentByLines( |
| 119 | content: string, |
no outgoing calls
no test coverage detected