| 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) => |