`file:name` of every symbol with a `references` edge to the node.
(nodeId: string)
| 34 | |
| 35 | /** `file:name` of every symbol with a `references` edge to the node. */ |
| 36 | function referencers(nodeId: string): string[] { |
| 37 | const names = cg!.getIncomingEdges(nodeId) |
| 38 | .filter((e) => e.kind === 'references') |
| 39 | .map((e) => cg!.getNode(e.source)!) |
| 40 | .map((n) => `${n.filePath.replace(/^src\//, '')}:${n.name}`); |
| 41 | return [...new Set(names)].sort(); |
| 42 | } |
| 43 | |
| 44 | const MODE = `pub enum Mode { |
| 45 | A, |
no test coverage detected