MCPcopy Index your code
hub / github.com/prettier/prettier / hasCursor

Function hasCursor

tests/integration/__tests__/debug-api.js:41–43  ·  view source on GitHub ↗
(doc)

Source from the content-addressed store, hash-verified

39
40 test("prettier.printToDoc", async () => {
41 const hasCursor = (doc) =>
42 findInDoc(doc, (doc) => (doc.type === "cursor" ? true : undefined)) ??
43 false;
44
45 expect(hasCursor(doc)).toBe(false);
46

Callers 1

debug-api.jsFile · 0.85

Calls 1

findInDocFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…