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

Method targetOf

ark/aot/flat.ts:855–864  ·  view source on GitHub ↗
(
		specifier: string,
		importer: SourceModule
	)

Source from the content-addressed store, hash-verified

853
854 // a generated module by its specifier, another as the bundler resolves it
855 private targetOf(
856 specifier: string,
857 importer: SourceModule
858 ): SourceModule | undefined {
859 const id =
860 this.modules.has(specifier) ?
861 specifier
862 : this.resolve(specifier, importer.id)
863 return id === undefined ? undefined : this.modules.get(id)
864 }
865
866 private referencesOf(module: SourceModule): Map<Node, Reference[]> {
867 let result = this.referencesIn.get(module)

Callers 4

keepExportsMethod · 0.95
keepLoadedMethod · 0.95
keepExportMethod · 0.95
keepBindingMethod · 0.95

Calls 3

resolveMethod · 0.65
getMethod · 0.65
hasMethod · 0.45

Tested by

no test coverage detected