`calls` callees of a function or method, as `qualifiedName @confidence`, one per call site.
(cg: CodeGraph, caller: string)
| 46 | |
| 47 | /** `calls` callees of a function or method, as `qualifiedName @confidence`, one per call site. */ |
| 48 | function calls(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.edge.metadata as { confidence?: number } | undefined)?.confidence}`) |
| 53 | .sort(); |
| 54 | } |
| 55 | |
| 56 | const lines = (...text: string[]): string => [...text, ''].join('\n'); |
| 57 |
no test coverage detected