Every edge out of the nodes of `file`, but `contains`, as `kind target@file`.
(file: string)
| 33 | |
| 34 | /** Every edge out of the nodes of `file`, but `contains`, as `kind target@file`. */ |
| 35 | function edgesFrom(file: string): string[] { |
| 36 | return [...cg!.getNodesByKind('file'), ...cg!.getNodesByKind('function'), ...cg!.getNodesByKind('method'), ...cg!.getNodesByKind('class')] |
| 37 | .filter((n) => n.filePath === file) |
| 38 | .flatMap((n) => cg!.getOutgoingEdges(n.id)) |
| 39 | .filter((e) => e.kind !== 'contains') |
| 40 | .map((e) => { |
| 41 | const t = cg!.getNode(e.target); |
| 42 | return `${e.kind} ${t?.qualifiedName}@${t?.filePath}`; |
| 43 | }) |
| 44 | .sort(); |
| 45 | } |
| 46 | |
| 47 | const FAR = 'class TimeoutError(Exception):\n pass\n\n\nclass ValueError(Exception):\n pass\n\n\nclass KeyError(Exception):\n pass\n'; |
| 48 |
no test coverage detected