`calls` callees of a function or method, as `qualifiedName`.
(cg: CodeGraph, caller: string)
| 37 | |
| 38 | /** `calls` callees of a function or method, as `qualifiedName`. */ |
| 39 | function calls(cg: CodeGraph, caller: string): string[] { |
| 40 | return cg |
| 41 | .getCallees(callable(cg, caller).id) |
| 42 | .filter((r) => r.edge.kind === 'calls') |
| 43 | .map((r) => r.node.qualifiedName) |
| 44 | .sort(); |
| 45 | } |
| 46 | |
| 47 | /** `calls` callees of a function or method, as `qualifiedName:startLine`, which tells overloads apart. */ |
| 48 | function callsAt(cg: CodeGraph, caller: string): string[] { |
no test coverage detected