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

Method sourceOf

ark/aot/precompile.ts:4002–4007  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

4000 }
4001
4002 private sourceOf(id: string): string | undefined {
4003 const module = this.graph.moduleOf(id)
4004 return module instanceof SourceModule ?
4005 module.source
4006 : this.graph.host.readFile(id)
4007 }
4008
4009 private stampConfiguration(module: SourceModule, s: MagicString): void {
4010 const call = this.configureCallsOf(module)[0]

Callers 6

readConfigurationMethod · 0.95
isOneValueReadMethod · 0.45
receiveReferencesMethod · 0.45
unsupportedReasonsOfMethod · 0.45
visitMethod · 0.45
buildPerturbedFunction · 0.45

Calls 2

readFileMethod · 0.80
moduleOfMethod · 0.45

Tested by 1

buildPerturbedFunction · 0.36