MCPcopy Create free account
hub / github.com/ChinaSiro/claude-code-sourcemap / getLine

Method getLine

restored-src/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 2

maxMethod · 0.45
minMethod · 0.45

Tested by

no test coverage detected