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

Function rangeToPlainObject

src/testUtil/toPlainObject.ts:21–26  ·  view source on GitHub ↗
(range: Range)

Source from the content-addressed store, hash-verified

19export type SerializedMarks = { [decoratedCharacter: string]: RangePlainObject };
20
21export function rangeToPlainObject(range: Range): RangePlainObject {
22 return {
23 start: positionToPlainObject(range.start),
24 end: positionToPlainObject(range.end),
25 };
26}
27
28export function selectionToPlainObject(
29 selection: Selection

Callers 2

checkMarksFunction · 0.90
marksToPlainObjectFunction · 0.85

Calls 1

positionToPlainObjectFunction · 0.85

Tested by 1

checkMarksFunction · 0.72