What the calls at `line` of the function or method `qualifiedName` reach, as `qualifiedName @confidence`.
(cg: CodeGraph, qualifiedName: string, line: number)
| 34 | |
| 35 | /** What the calls at `line` of the function or method `qualifiedName` reach, as `qualifiedName @confidence`. */ |
| 36 | function callsAt(cg: CodeGraph, qualifiedName: string, line: number): string[] { |
| 37 | const from = [...cg.getNodesByKind('method'), ...cg.getNodesByKind('function')].find((n) => n.qualifiedName === qualifiedName)!; |
| 38 | return cg.getOutgoingEdgesFrom([from.id], ['calls']) |
| 39 | .filter((e) => e.line === line) |
| 40 | .map((e) => `${cg.getNode(e.target)?.qualifiedName} @${(e.metadata as { confidence?: number } | undefined)?.confidence}`) |
| 41 | .sort(); |
| 42 | } |
| 43 | |
| 44 | const ARENA = lines( |
| 45 | 'namespace google {', |
no test coverage detected