MCPcopy Create free account
hub / github.com/cursorless-dev/cursorless / positionToPlainObject

Function positionToPlainObject

src/testUtil/toPlainObject.ts:37–39  ·  view source on GitHub ↗
(position: Position)

Source from the content-addressed store, hash-verified

35}
36
37export function positionToPlainObject(position: Position): PositionPlainObject {
38 return { line: position.line, character: position.character };
39}
40
41export function marksToPlainObject(marks: { [decoratedCharacter: string]: Token }) {
42 const serializedMarks: SerializedMarks = {};

Callers 2

rangeToPlainObjectFunction · 0.85
selectionToPlainObjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected