The calls and references a routine makes, as `kind:Target`, once each.
(qualifiedName: string)
| 48 | |
| 49 | /** The calls and references a routine makes, as `kind:Target`, once each. */ |
| 50 | function dependencies(qualifiedName: string): string[] { |
| 51 | return [...new Set(graph!.getOutgoingEdges(routine(qualifiedName).id) |
| 52 | .filter((e) => e.kind === 'calls' || e.kind === 'references') |
| 53 | .map((e) => `${e.kind}:${graph!.getNode(e.target)!.qualifiedName}`))].sort(); |
| 54 | } |
| 55 | |
| 56 | /** The routines that call a method, by name, once each. */ |
| 57 | function callerNamesOf(qualifiedName: string): string[] { |
no test coverage detected