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

Function resolveStandIn

ark/aot/interpreter.ts:240–247  ·  view source on GitHub ↗
(proxy: object)

Source from the content-addressed store, hash-verified

238// Walking the stack handles a shared configuration writer created by a prior
239// Interpreter running while a replacement Interpreter evaluates its own site.
240const resolveStandIn = (proxy: object): [Interpreter, StandIn] | undefined => {
241 for (let i = activeInterpreters.length - 1; i >= 0; i--) {
242 const active = activeInterpreters[i]
243 const standIn = active.standIns.get(proxy)
244 if (standIn) return [active, standIn]
245 }
246 return undefined
247}
248
249const requireStandIn = (proxy: object): [Interpreter, StandIn] => {
250 const resolved = resolveStandIn(proxy)

Callers 2

requireStandInFunction · 0.85
createStandInProxyMethod · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected