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

Function bindingOf

ark/aot/flat.ts:460–461  ·  view source on GitHub ↗
(id: Node)

Source from the content-addressed store, hash-verified

458 const annotation = pureAnnotationOf(module.source, call)
459 if (!annotation) continue
460 const bindingOf = (id: Node) =>
461 module.scopes.root.bindings[(id as { name: string }).name]
462 const creator = originOf(bindingOf(call.callee))
463 const args = call.arguments.map(arg => originOf(bindingOf(arg)))
464 const fn = creator && creatorFnOf(parsed.get(creator[0])!)

Callers 1

creationsInFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected