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

Function unresolve

ark/schema/scope.ts:298–303  ·  view source on GitHub ↗
(ctx: BaseParseContext)

Source from the content-addressed store, hash-verified

296// again by its next reference, which queues them again. Registered, so that
297// an alias holding what it resolved to reaches the same resolution
298const unresolve = (ctx: BaseParseContext): void => {
299 if (ctx.phase !== "resolved") return
300 ctx.phase = "unresolved"
301 nodesById.set(ctx.id, ctx)
302 ctx.$.res[ctx.alias!] = ctx
303}
304
305const registerParseContext = <ctx extends BaseParseContext>(ctx: ctx): ctx =>
306 nodesById.pin(ctx.id, ctx) as ctx

Callers 2

resolvePendingFunction · 0.85
resolveDefinitionFunction · 0.85

Calls 1

setMethod · 0.45

Tested by

no test coverage detected