MCPcopy Index your code
hub / github.com/codeaashu/claude-code / dropSubtreeCache

Function dropSubtreeCache

src/ink/render-node-to-output.ts:1450–1457  ·  view source on GitHub ↗
(node: DOMElement)

Source from the content-addressed store, hash-verified

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

Callers 2

renderNodeToOutputFunction · 0.85
renderScrolledChildrenFunction · 0.85

Calls 1

deleteMethod · 0.65

Tested by

no test coverage detected