(cg: CodeGraph, typeId: string)
| 473 | * exists to prevent. |
| 474 | */ |
| 475 | export function countImplementers(cg: CodeGraph, typeId: string): number { |
| 476 | try { |
| 477 | const edges = cg.getIncomingEdgesTo([typeId], [...HIERARCHY_EDGE_KINDS]); |
| 478 | return new Set(edges.map((e) => e.source)).size; |
| 479 | } catch { |
| 480 | return 0; |
| 481 | } |
| 482 | } |
no test coverage detected