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

Method constInitOf

ark/aot/graph.ts:4578–4589  ·  view source on GitHub ↗
(
		node: Node,
		module: SourceModule,
		kindOfKey: KindOfKey
	)

Source from the content-addressed store, hash-verified

4576
4577 // e.g. `shop` or `defs.shop`, imported from where it's declared
4578 private constInitOf(
4579 node: Node,
4580 module: SourceModule,
4581 kindOfKey: KindOfKey
4582 ): Located | undefined {
4583 if (node.type === "MemberExpression") {
4584 const target = this.namespaceMemberOf(node, module)
4585 return target && this.targetInitOf(target, kindOfKey)
4586 }
4587 const binding = module.scopes.byId.get(node)?.binding
4588 return binding && this.bindingInitOf(binding, module, kindOfKey)
4589 }
4590
4591 private bindingInitOf(
4592 binding: Binding,

Callers 3

alternativesOfMethod · 0.95
moduleDefinitionOfMethod · 0.95
scopeCallOfMethod · 0.95

Calls 4

namespaceMemberOfMethod · 0.95
targetInitOfMethod · 0.95
bindingInitOfMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected