(next: Node | null)
| 252 | const order: Node[] = []; |
| 253 | const seen = new Set<string>([cls.id]); |
| 254 | const add = (next: Node | null): Node | null => { |
| 255 | if (!next || next.kind !== 'class' || seen.has(next.id) || order.length >= MAX_HIERARCHY_DEPTH) return null; |
| 256 | seen.add(next.id); |
| 257 | order.push(next); |
| 258 | return next; |
| 259 | }; |
| 260 | let c: Node | null = cls; |
| 261 | const helper = helperHead(cls); |
| 262 | if (helper) { |
no test coverage detected