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

Function reachedAt

ark/schema/units.ts:847–851  ·  view source on GitHub ↗
(id: NodeId)

Source from the content-addressed store, hash-verified

845 }
846 const reachedRead = new Map<NodeId, BaseNode | undefined>()
847 const reachedAt = (id: NodeId) => {
848 const node = s.byId[id]?.node
849 reachedRead.set(id, node)
850 return node
851 }
852 const roots: BaseNode[] = component.filter(node => node.isRoot())
853 roots.sort((l, r) => (readName(l.id) < readName(r.id) ? -1 : 1))
854 if (!roots.length) return

Callers 1

writeComponentFunction · 0.85

Calls 1

setMethod · 0.45

Tested by

no test coverage detected