MCPcopy Create free account
hub / github.com/arktypeio/arktype / isEdited

Function isEdited

ark/aot/flat.ts:1669–1670  ·  view source on GitHub ↗
(start: number, end: number)

Source from the content-addressed store, hash-verified

1667 // each inline reads the code as parsed, so no other may touch its span
1668 const edited: [start: number, end: number][] = []
1669 const isEdited = (start: number, end: number) =>
1670 edited.some(span => start < span[1] && span[0] < end)
1671 for (const statement of program.body as Node[]) {
1672 if (statement.type !== "VariableDeclaration") continue
1673 const { declarations } = statement

Callers 1

inlineCallsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected