(rel: string, content: string)
| 108 | let cg: CodeGraph; |
| 109 | |
| 110 | const write = (rel: string, content: string): void => { |
| 111 | const full = path.join(dir, rel); |
| 112 | fs.mkdirSync(path.dirname(full), { recursive: true }); |
| 113 | fs.writeFileSync(full, content); |
| 114 | }; |
| 115 | |
| 116 | const calls = (from: string, inFile: string): string[] => { |
| 117 | const node = cg.getNodesInFile(inFile).find((n) => n.name === from && n.kind === 'method'); |