MCPcopy Create free account
hub / github.com/SplootCode/splootcode / isValid

Method isValid

packages/editor/src/context/cursor_map.ts:243–250  ·  view source on GitHub ↗
(position: CursorPosition)

Source from the content-addressed store, hash-verified

241 }
242
243 isValid(position: CursorPosition): boolean {
244 const entries = this.getEntryListForLineIndex(position.lineIndex)
245 const cursorEntry = entries[position.entryIndex]
246 if (cursorEntry) {
247 return true
248 }
249 return false
250 }
251
252 getCoordinates(position: CursorPosition): [number, number] {
253 const entries = this.getEntryListForLineIndex(position.lineIndex)

Callers 1

Calls 1

Tested by

no test coverage detected