(ln: number)
| 6256 | const MIN_WINDOW_LINES = 12; |
| 6257 | /** Rendered cost of one source line, line numbering included. */ |
| 6258 | const lineCost = (ln: number): number => |
| 6259 | (fileLines[ln - 1] ?? '').length + 1 + (withLineNumbers ? String(ln).length + 1 : 0); |
| 6260 | /** `lineCostPrefix[n]` = rendered chars of lines 1..n, newlines included. */ |
| 6261 | let lineCostPrefix: number[] | null = null; |
| 6262 | /** Rendered chars of lines `start..end` (line numbers included), in O(1). */ |
nothing calls this directly
no outgoing calls
no test coverage detected