(line: number)
| 1354 | } |
| 1355 | |
| 1356 | private getLine(line: number): WrappedLine { |
| 1357 | const lines = this.wrappedLines |
| 1358 | return lines[Math.max(0, Math.min(line, lines.length - 1))]! |
| 1359 | } |
| 1360 | |
| 1361 | public getOffsetFromPosition(position: Position): number { |
| 1362 | const wrappedLine = this.getLine(position.line) |
no test coverage detected