( component: DevComponent | string, rootTag: string | undefined, nodeId: string, lang: CodeLanguage )
| 591 | if (!snapshot) continue |
| 592 | snapshot.children.forEach((childId) => skipDescendants(childId, tree, pluginSkipped)) |
| 593 | } |
| 594 | } |
| 595 | |
| 596 | return { pluginComponents, pluginSkipped } |
| 597 | } |
| 598 | |
| 599 | function skipDescendants(id: string, tree: VisibleTree, skipped: Set<string>): void { |
| 600 | const node = tree.nodes.get(id) |
| 601 | if (!node) return |
| 602 | if (skipped.has(id)) return |
| 603 | skipped.add(id) |
| 604 | node.children.forEach((childId) => skipDescendants(childId, tree, skipped)) |
| 605 | } |
| 606 |
no test coverage detected