(node: Node)
| 53 | } |
| 54 | |
| 55 | export function getClosestComponentNode(node: Node): Node | undefined { |
| 56 | let current: Node | null = node |
| 57 | while (current) { |
| 58 | if (current.type === debug.NodeType.Component) return current |
| 59 | current = current.parent |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | export function getNodePath(node: Node): Node[] { |
| 64 | const path = [node] |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…