MCPcopy
hub / github.com/codeaashu/claude-code / walk

Function walk

src/ink/dom.ts:470–483  ·  view source on GitHub ↗
(node: DOMElement, offsetY: number)

Source from the content-addressed store, hash-verified

468 return best
469
470 function walk(node: DOMElement, offsetY: number): void {
471 const yoga = node.yogaNode
472 if (!yoga || yoga.getDisplay() === LayoutDisplay.None) return
473
474 const top = offsetY + yoga.getComputedTop()
475 const height = yoga.getComputedHeight()
476 if (y < top || y >= top + height) return
477
478 if (node.debugOwnerChain) best = node.debugOwnerChain
479
480 for (const child of node.childNodes) {
481 if (isDOMElement(child)) walk(child, top)
482 }
483 }
484}
485

Callers 1

findOwnerChainAtRowFunction · 0.70

Calls 4

isDOMElementFunction · 0.85
getDisplayMethod · 0.45
getComputedTopMethod · 0.45
getComputedHeightMethod · 0.45

Tested by

no test coverage detected