`calls` callees of a function or method, as `qualifiedName @confidence`, one per call site.
(cg: CodeGraph, caller: string, file?: string)
| 47 | |
| 48 | /** `calls` callees of a function or method, as `qualifiedName @confidence`, one per call site. */ |
| 49 | function calls(cg: CodeGraph, caller: string, file?: string): string[] { |
| 50 | return cg |
| 51 | .getCallees(callable(cg, caller, file).id) |
| 52 | .filter((r) => r.edge.kind === 'calls') |
| 53 | .map((r) => `${r.node.qualifiedName} @${(r.edge.metadata as { confidence?: number } | undefined)?.confidence}`) |
| 54 | .sort(); |
| 55 | } |
| 56 | |
| 57 | /** `calls` callees as `qualifiedName by resolvedBy`. */ |
| 58 | function resolvers(cg: CodeGraph, caller: string): string[] { |
no test coverage detected