(cg: CodeGraph, name: string)
| 40 | } |
| 41 | |
| 42 | function fn(cg: CodeGraph, name: string): Node { |
| 43 | const node = cg.getNodesByKind('function').find((n) => n.name === name); |
| 44 | if (!node) throw new Error(`no function ${name}`); |
| 45 | return node; |
| 46 | } |
| 47 | |
| 48 | /** `calls` callees of a function, as `kind qualifiedName (file)`. */ |
| 49 | function calls(cg: CodeGraph, caller: string): string[] { |
no test coverage detected