(cg: CodeGraph, qualifiedName: string)
| 44 | } |
| 45 | |
| 46 | function callable(cg: CodeGraph, qualifiedName: string): Node { |
| 47 | const node = [...cg.getNodesByKind('method'), ...cg.getNodesByKind('function')].find((n) => n.qualifiedName === qualifiedName); |
| 48 | if (!node) throw new Error(`no function or method ${qualifiedName}`); |
| 49 | return node; |
| 50 | } |
| 51 | |
| 52 | /** `calls` callees of a function or method, as `qualifiedName`. */ |
| 53 | function calls(cg: CodeGraph, caller: string): string[] { |
no test coverage detected