`calls` callees of a function or method, as `kind qualifiedName (file)`.
(cg: CodeGraph, caller: string)
| 45 | |
| 46 | /** `calls` callees of a function or method, as `kind qualifiedName (file)`. */ |
| 47 | function calls(cg: CodeGraph, caller: string): string[] { |
| 48 | return cg |
| 49 | .getCallees(callable(cg, caller).id) |
| 50 | .filter((r) => r.edge.kind === 'calls') |
| 51 | .map((r) => `${r.node.kind} ${r.node.qualifiedName} (${r.node.filePath})`) |
| 52 | .sort(); |
| 53 | } |
| 54 | |
| 55 | const lines = (...l: string[]): string => [...l, ''].join('\n'); |
| 56 |
no test coverage detected