MCPcopy
hub / github.com/claude-code-best/claude-code / getPosition

Method getPosition

src/utils/Cursor.ts:1021–1023  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1019 }
1020
1021 getPosition(): Position {
1022 return this.measuredText.getPositionFromOffset(this.offset)
1023 }
1024
1025 private getOffset(position: Position): number {
1026 return this.measuredText.getOffsetFromPosition(position)

Callers 13

getViewportStartLineMethod · 0.95
renderMethod · 0.95
upMethod · 0.95
downMethod · 0.95
startOfCurrentLineMethod · 0.95
startOfLineMethod · 0.95
firstNonBlankInLineMethod · 0.95
endOfLineMethod · 0.95
executeJoinFunction · 0.80
executePasteFunction · 0.80
executeIndentFunction · 0.80
executeOpenLineFunction · 0.80

Calls 1

getPositionFromOffsetMethod · 0.80

Tested by

no test coverage detected