`calls` callees of a function or method, as `qualifiedName (file)`.
(cg: CodeGraph, caller: string)
| 43 | |
| 44 | /** `calls` callees of a function or method, as `qualifiedName (file)`. */ |
| 45 | function calls(cg: CodeGraph, caller: string): string[] { |
| 46 | return cg |
| 47 | .getCallees(callable(cg, caller).id) |
| 48 | .filter((r) => r.edge.kind === 'calls') |
| 49 | .map((r) => `${r.node.qualifiedName} (${r.node.filePath})`) |
| 50 | .sort(); |
| 51 | } |
| 52 | |
| 53 | /** `calls` callees with how each was resolved: `qualifiedName resolvedBy@confidence`. */ |
| 54 | function resolvedCalls(cg: CodeGraph, caller: string): string[] { |
no test coverage detected