(file: string, name: string)
| 497 | |
| 498 | /** `kind file:qualifiedName` of each non-contains edge out of `name` in `file`, sorted. */ |
| 499 | const linksFrom = (file: string, name: string) => { |
| 500 | const links = cg!.getOutgoingEdgesFrom([nodeNamed(file, name).id]) |
| 501 | .filter((e) => e.kind !== 'contains') |
| 502 | .map((e) => ({ kind: e.kind, target: cg!.getNode(e.target)! })) |
| 503 | .map(({ kind, target }) => `${kind} ${target.filePath}:${target.qualifiedName}`); |
| 504 | return [...new Set(links)].sort(); |
| 505 | }; |
| 506 | |
| 507 | /** `kind name` of each reference out of `name` in `file` that resolution left unresolved, sorted. */ |
| 508 | const unresolvedFrom = (file: string, name: string) => |
no test coverage detected