MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / dropSubtreeCache

Function dropSubtreeCache

source code/ink/render-node-to-output.ts:1452–1459  ·  view source on GitHub ↗
(node: DOMElement)

Source from the content-addressed store, hash-verified

1450}
1451
1452function dropSubtreeCache(node: DOMElement): void {
1453 nodeCache.delete(node)
1454 for (const child of node.childNodes) {
1455 if (child.nodeName !== '#text') {
1456 dropSubtreeCache(child as DOMElement)
1457 }
1458 }
1459}
1460
1461// Exported for testing
1462export { buildCharToSegmentMap, applyStylesToWrappedText }

Callers 2

renderNodeToOutputFunction · 0.85
renderScrolledChildrenFunction · 0.85

Calls 1

deleteMethod · 0.80

Tested by

no test coverage detected