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