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