(target: { id: string }, kinds: Edge['kind'][])
| 174 | |
| 175 | /** The edges into `target`, as `kind source-file resolvedBy`. */ |
| 176 | const into = (target: { id: string }, kinds: Edge['kind'][]) => |
| 177 | cg |
| 178 | .getIncomingEdges(target.id) |
| 179 | .filter((e) => kinds.includes(e.kind)) |
| 180 | .map((e) => `${e.kind} ${cg.getNode(e.source)!.filePath} ${(e.metadata as { resolvedBy?: string }).resolvedBy}`) |
| 181 | .sort(); |
| 182 | |
| 183 | /** The call and instantiation edges out of a file's nodes, as `kind target-file:target-name`. */ |
| 184 | const outOf = (file: string) => |
no test coverage detected