* Calculate the offset of a line's start position.
(lines: string[], lineIndex: number)
| 423 | * Calculate the offset of a line's start position. |
| 424 | */ |
| 425 | function getLineStartOffset(lines: string[], lineIndex: number): number { |
| 426 | return lines.slice(0, lineIndex).join('\n').length + (lineIndex > 0 ? 1 : 0) |
| 427 | } |
| 428 | |
| 429 | function getOperatorRange( |
| 430 | cursor: Cursor, |
no outgoing calls
no test coverage detected