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

Method bind

ark/aot/scope.ts:578–593  ·  view source on GitHub ↗
(
		id: Node,
		kind: BindingKind,
		declaration: Node,
		parent: Node,
		scope = this.scope
	)

Source from the content-addressed store, hash-verified

576 }
577
578 private bind(
579 id: Node,
580 kind: BindingKind,
581 declaration: Node,
582 parent: Node,
583 scope = this.scope
584 ): void {
585 id.parent = parent
586 this.bindName(
587 (id as IdentifierReference).name,
588 id,
589 kind,
590 declaration,
591 scope
592 )
593 }
594
595 private bindName(
596 name: string,

Callers 15

visitMethod · 0.95
visitFunctionMethod · 0.95
visitClassMethod · 0.95
bindPatternMethod · 0.95
snapMethod · 0.80
standalone.test.tsFile · 0.80
createOverlayHostFunction · 0.80
diagnosticsOfMethod · 0.80
delegateGetFunction · 0.80
sortOfFunction · 0.80
precompileFunction · 0.80

Calls 1

bindNameMethod · 0.95

Tested by 1

sortOfFunction · 0.64