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

Method getLine

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

Source from the content-addressed store, hash-verified

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)

Callers 2

getOffsetFromPositionMethod · 0.95
getLineLengthMethod · 0.95

Calls 1

maxMethod · 0.80

Tested by

no test coverage detected