* Gets the base-0 line number.
(n: number)
| 68 | * Gets the base-0 line number. |
| 69 | */ |
| 70 | public getLineOffset(n: number) { |
| 71 | return n >= this.lines.length ? this.source.length : this.lines[n]; |
| 72 | } |
| 73 | |
| 74 | /** |
| 75 | * Converts from a base 0 line and column to a file offset. |