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