* Relationship label for a non-`calls` edge in callers/callees lists. A * function-as-value edge (#756) is the high-signal one: `callers(cb)` * showing "via callback registration" tells the agent this is where the * callback is WIRED, not where it's invoked.
(edge: Edge)
| 9079 | * callback is WIRED, not where it's invoked. |
| 9080 | */ |
| 9081 | private edgeLabel(edge: Edge): string | null { |
| 9082 | if (edge.kind === 'calls') return null; |
| 9083 | if (edge.metadata?.fnRef === true) return 'callback registration'; |
| 9084 | if (edge.kind === 'instantiates') return 'instantiation'; |
| 9085 | if (edge.kind === 'imports') return 'import'; |
| 9086 | if (edge.kind === 'references') return 'reference'; |
| 9087 | return edge.kind; |
| 9088 | } |
| 9089 | |
| 9090 | private formatImpact(symbol: string, impact: Subgraph): string { |
| 9091 | const nodeCount = impact.nodes.size; |