(rel: string, content: string)
| 217 | let cg: CodeGraph; |
| 218 | |
| 219 | const write = (rel: string, content: string): void => { |
| 220 | const full = path.join(dir, rel); |
| 221 | fs.mkdirSync(path.dirname(full), { recursive: true }); |
| 222 | fs.writeFileSync(full, content); |
| 223 | }; |
| 224 | const outgoing = (name: string, kind: string): string[] => { |
| 225 | const node = cg.getNodesByName(name).find((n) => n.kind === kind); |
| 226 | if (!node) throw new Error(`no ${kind} ${name}`); |
no test coverage detected