(root: string, files: Record<string, string>)
| 15 | import { readDartDirectives } from '../src/resolution/dart-libraries'; |
| 16 | |
| 17 | function writeTree(root: string, files: Record<string, string>): void { |
| 18 | for (const [rel, content] of Object.entries(files)) { |
| 19 | fs.mkdirSync(path.dirname(path.join(root, rel)), { recursive: true }); |
| 20 | fs.writeFileSync(path.join(root, rel), content); |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | /** `<kind> <line> <name> -> <target file>:<target qualified name>` for every edge out of `file`. */ |
| 25 | function edgesFrom(cg: CodeGraph, file: string): string[] { |
no test coverage detected