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

Method ref

ark/schema/units.ts:665–669  ·  view source on GitHub ↗
(value: object | symbol)

Source from the content-addressed store, hash-verified

663 // morph pipes to does. One a root's unit would leave uncompiled since
664 // nothing invokes it is compiled with the unit, or each read walks its nodes
665 override ref(value: object | symbol): string {
666 if (isNode(value) && !value.unitFn && this.link.unreached.delete(value))
667 this.link.reached.push(value)
668 return super.ref(value)
669 }
670
671 reach(node: BaseNode): void {
672 if (!this.link.byId[node.id]) {

Callers

nothing calls this directly

Calls 4

isNodeFunction · 0.90
deleteMethod · 0.45
pushMethod · 0.45
refMethod · 0.45

Tested by

no test coverage detected