`calls` callees of a function or method, as `qualifiedName [file] @confidence`.
(cg: CodeGraph, caller: string, file?: string)
| 46 | |
| 47 | /** `calls` callees of a function or method, as `qualifiedName [file] @confidence`. */ |
| 48 | function calls(cg: CodeGraph, caller: string, file?: string): string[] { |
| 49 | return cg |
| 50 | .getCallees(callable(cg, caller, file).id) |
| 51 | .filter((r) => r.edge.kind === 'calls') |
| 52 | .map((r) => `${r.node.qualifiedName} [${r.node.filePath}] @${(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