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

Method readProgram

ark/aot/precompile.ts:1044–1051  ·  view source on GitHub ↗
(program: ReadProgram | undefined)

Source from the content-addressed store, hash-verified

1042 // none, as a build reading a module at a time, which a kept precompiler
1043 // reads once the build that read one ends
1044 readProgram(program: ReadProgram | undefined): void {
1045 if (program) this.graph.readView(this.viewOf(program))
1046 else if (this.graph.view) this.graph.readView(undefined)
1047 else return
1048 // what another module may write was read without the program
1049 this.analysesByModule = new WeakMap()
1050 this.readsOffHolders = undefined
1051 }
1052
1053 private viewOf(program: ReadProgram): ProgramView {
1054 const resolve = (specifier: string, importer: string) =>

Callers 6

scanMethod · 0.95
precompileProgramFunction · 0.95
programStatusesOfFunction · 0.95
viewingFunction · 0.80
keptAcrossFunction · 0.80
buildPerturbedFunction · 0.80

Calls 2

viewOfMethod · 0.95
readViewMethod · 0.80

Tested by 3

precompileProgramFunction · 0.76
programStatusesOfFunction · 0.76
buildPerturbedFunction · 0.64