`calls` callees of a function or method, as `qualifiedName`.
(cg: CodeGraph, caller: string)
| 52 | |
| 53 | /** `calls` callees of a function or method, as `qualifiedName`. */ |
| 54 | function calls(cg: CodeGraph, caller: string): string[] { |
| 55 | return cg |
| 56 | .getCallees(callable(cg, caller).id) |
| 57 | .filter((r) => r.edge.kind === 'calls') |
| 58 | .map((r) => r.node.qualifiedName) |
| 59 | .sort(); |
| 60 | } |
| 61 | |
| 62 | /** Where the `calls` edges written in `file` lead, as `name @ file:line` of each target. */ |
| 63 | function callsFrom(cg: CodeGraph, file: string): string[] { |
no test coverage detected