`calls` callees of a function or method, as `qualifiedName` and file.
(cg: CodeGraph, caller: string)
| 38 | |
| 39 | /** `calls` callees of a function or method, as `qualifiedName` and file. */ |
| 40 | function calls(cg: CodeGraph, caller: string): string[] { |
| 41 | return cg |
| 42 | .getCallees(callable(cg, caller).id) |
| 43 | .filter((r) => r.edge.kind === 'calls') |
| 44 | .map((r) => `${r.node.qualifiedName} (${r.node.filePath})`) |
| 45 | .sort(); |
| 46 | } |
| 47 | |
| 48 | const lines = (...l: string[]): string => [...l, ''].join('\n'); |
| 49 |
no test coverage detected