(cg: CodeGraph, qualifiedName: string)
| 32 | } |
| 33 | |
| 34 | function callable(cg: CodeGraph, qualifiedName: string): Node { |
| 35 | const node = [...cg.getNodesByKind('method'), ...cg.getNodesByKind('function')].find((n) => n.qualifiedName === qualifiedName); |
| 36 | if (!node) throw new Error(`no function or method ${qualifiedName}`); |
| 37 | return node; |
| 38 | } |
| 39 | |
| 40 | /** `calls` callees of a function or method, as `qualifiedName`. */ |
| 41 | function calls(cg: CodeGraph, caller: string): string[] { |