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