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

Function getNodeIndexById

packages/frontend/src/structure.tsx:620–624  ·  view source on GitHub ↗
(id: debug.NodeID)

Source from the content-addressed store, hash-verified

618
619 // calculate node indexP in the collapsed list
620 const getNodeIndexById = (id: debug.NodeID): number => {
621 const nodeList = collapsedList()
622 for (let i = 0; i < nodeList.length; i++) if (nodeList[i]!.id === id) return i
623 return -1
624 }
625
626 // Index of the inspected node in the collapsed list
627 const inspectedIndex = s.createMemo(() => {

Callers 1

DisplayStructureTreeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…