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

Function getNodePath

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

Source from the content-addressed store, hash-verified

61}
62
63export function getNodePath(node: Node): Node[] {
64 const path = [node]
65 let parent = node.parent
66 while (parent) {
67 path.unshift(parent)
68 parent = parent.parent
69 }
70 return path
71}
72
73export function createStructure() {
74 const ctx = useAppCtx()

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…