`calls` edges of a function or method, as `qualifiedName @confidence`, one per call.
(cg: CodeGraph, caller: string)
| 43 | |
| 44 | /** `calls` edges of a function or method, as `qualifiedName @confidence`, one per call. */ |
| 45 | function calls(cg: CodeGraph, caller: string): string[] { |
| 46 | return cg |
| 47 | .getOutgoingEdgesFrom([callable(cg, caller).id], ['calls']) |
| 48 | .map((e) => `${cg.getNode(e.target)?.qualifiedName} @${(e.metadata as { confidence?: number } | undefined)?.confidence}`) |
| 49 | .sort(); |
| 50 | } |
| 51 | |
| 52 | const lines = (...text: string[]): string => [...text, ''].join('\n'); |
| 53 |
no test coverage detected