`caller kind callee` for every call and `new` the file records, by its caller's qualified name.
(result: ExtractionResult)
| 179 | |
| 180 | /** `caller kind callee` for every call and `new` the file records, by its caller's qualified name. */ |
| 181 | function callsOf(result: ExtractionResult): string[] { |
| 182 | const names = new Map(result.nodes.map((n) => [n.id, n.kind === 'file' ? n.filePath : n.qualifiedName])); |
| 183 | return result.unresolvedReferences |
| 184 | .filter((r) => r.referenceKind === 'calls' || r.referenceKind === 'instantiates') |
| 185 | .map((r) => `${names.get(r.fromNodeId)} ${r.referenceKind} ${r.referenceName}`) |
| 186 | .sort(); |
| 187 | } |
| 188 | |
| 189 | const backends = kernelAvailable ? (['kernel', 'wasm'] as const) : (['wasm'] as const); |
| 190 |
no test coverage detected