(line: number)
| 1379 | } |
| 1380 | |
| 1381 | private getLine(line: number): WrappedLine { |
| 1382 | const lines = this.wrappedLines |
| 1383 | return lines[Math.max(0, Math.min(line, lines.length - 1))]! |
| 1384 | } |
| 1385 | |
| 1386 | public getOffsetFromPosition(position: Position): number { |
| 1387 | const wrappedLine = this.getLine(position.line) |
no test coverage detected