MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / getClosestComponentNode

Function getClosestComponentNode

packages/frontend/src/structure.tsx:55–61  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

53}
54
55export 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
63export function getNodePath(node: Node): Node[] {
64 const path = [node]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…