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

Method close

ark/aot/scope.ts:656–674  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

654 }
655
656 private close(): void {
657 const { bindings, parent, unresolved } = this.scope
658 for (const reference of unresolved) {
659 const binding = bindings[reference.id.name]
660 if (binding) {
661 reference.binding = binding
662 binding.references.push(reference)
663 } else parent?.unresolved.push(reference)
664 }
665 if (parent) return
666 for (const [name, reference] of this.pendingExports) {
667 if (reference.binding) {
668 this.exportsByName[name] = {
669 kind: "binding",
670 binding: reference.binding
671 }
672 }
673 }
674 }
675
676 private functionScope(): Scope {
677 let scope = this.scope

Callers 2

constructorMethod · 0.95
inScopeMethod · 0.95

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected