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

Method locate

ark/aot/sameEachRun.ts:264–276  ·  view source on GitHub ↗
(
		binding: Binding,
		module: SourceModule
	)

Source from the content-addressed store, hash-verified

262 }
263
264 private locate(
265 binding: Binding,
266 module: SourceModule
267 ): Located | "arktype" | undefined {
268 if (binding.kind !== "import") return [binding, module]
269 const target = this.graph.importOf(binding, module)
270 return (
271 target.kind === "binding" ? [target.binding, target.module]
272 : target.kind === "arktype" || target.kind === "arktypeNamespace" ?
273 "arktype"
274 : undefined
275 )
276 }
277
278 // how many levels down what a const holds can be written, which nothing does
279 private fixedDepthOfBinding(

Callers 2

isSameReadMethod · 0.95
fixedDepthOfMethod · 0.95

Calls 1

importOfMethod · 0.80

Tested by

no test coverage detected