MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / getLine

Method getLine

src/utils/Cursor.ts:1356–1359  ·  view source on GitHub ↗
(line: number)

Source from the content-addressed store, hash-verified

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)

Callers 2

getOffsetFromPositionMethod · 0.95
getLineLengthMethod · 0.95

Calls 1

maxMethod · 0.80

Tested by

no test coverage detected