`calls` callees of a function or method, as `qualifiedName@file:line`.
(cg: CodeGraph, caller: string)
| 37 | |
| 38 | /** `calls` callees of a function or method, as `qualifiedName@file:line`. */ |
| 39 | function calls(cg: CodeGraph, caller: string): string[] { |
| 40 | return cg |
| 41 | .getCallees(callable(cg, caller).id) |
| 42 | .filter((r) => r.edge.kind === 'calls') |
| 43 | .map((r) => `${r.node.qualifiedName}@${r.node.filePath}:${r.node.startLine}`) |
| 44 | .sort(); |
| 45 | } |
| 46 | |
| 47 | /** The methods of a file, as `qualifiedName:line`. */ |
| 48 | function methodsIn(cg: CodeGraph, file: string): string[] { |
no test coverage detected