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

Method bindingIn

ark/aot/scope.ts:635–645  ·  view source on GitHub ↗
(node: Node | undefined, name: string)

Source from the content-addressed store, hash-verified

633 }
634
635 bindingIn(node: Node | undefined, name: string): Binding | undefined {
636 for (
637 let current: Node | null | undefined = node;
638 current;
639 current = current.parent
640 ) {
641 const scope = this.byNode.get(current)
642 if (scope && name in scope.bindings) return scope.bindings[name]
643 }
644 return this.root.bindings[name]
645 }
646
647 private inScope(node: Node, visit: () => void): void {
648 const parentScope = this.scope

Callers 1

queriedOfMethod · 0.80

Calls 1

getMethod · 0.65

Tested by

no test coverage detected