MCPcopy Create free account
hub / github.com/Noumena-Network/code / dropSubtreeCache

Function dropSubtreeCache

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

Source from the content-addressed store, hash-verified

1466}
1467
1468function dropSubtreeCache(node: DOMElement): void {
1469 nodeCache.delete(node)
1470 for (const child of node.childNodes) {
1471 if (child.nodeName !== '#text') {
1472 dropSubtreeCache(child as DOMElement)
1473 }
1474 }
1475}
1476
1477// Exported for testing
1478export { buildCharToSegmentMap, applyStylesToWrappedText }

Callers 2

renderNodeToOutputFunction · 0.85
renderScrolledChildrenFunction · 0.85

Calls 1

deleteMethod · 0.80

Tested by

no test coverage detected