(files: Record<string, string>)
| 18 | let cg: CodeGraph | null = null; |
| 19 | |
| 20 | function write(files: Record<string, string>): void { |
| 21 | for (const [rel, source] of Object.entries(files)) { |
| 22 | fs.mkdirSync(path.dirname(path.join(tempDir, rel)), { recursive: true }); |
| 23 | fs.writeFileSync(path.join(tempDir, rel), source); |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | /** `kind:name@file` of every target of an `imports` edge from `fromFile`'s file node, sorted. */ |
| 28 | function importEdges(fromFile: string): string[] { |
no test coverage detected