What a routine calls, as `file:Target`, sorted.
(cg: CodeGraph, qualifiedName: string)
| 44 | |
| 45 | /** What a routine calls, as `file:Target`, sorted. */ |
| 46 | function callsFrom(cg: CodeGraph, qualifiedName: string): string[] { |
| 47 | return [...new Set(cg.getOutgoingEdges(routine(cg, qualifiedName).id) |
| 48 | .filter((e) => e.kind === 'calls') |
| 49 | .map((e) => cg.getNode(e.target)!) |
| 50 | .map((n) => `${path.basename(n.filePath)}:${n.qualifiedName}`))].sort(); |
| 51 | } |
| 52 | |
| 53 | // The routines elsewhere a nested routine's name could be taken for. |
| 54 | const LIB = `unit Lib; |
no test coverage detected