MCPcopy Create free account
hub / github.com/codeaashu/claude-code / addPendingClear

Function addPendingClear

src/ink/node-cache.ts:34–48  ·  view source on GitHub ↗
(
  parent: DOMElement,
  rect: Rectangle,
  isAbsolute: boolean,
)

Source from the content-addressed store, hash-verified

32let absoluteNodeRemoved = false
33
34export function addPendingClear(
35 parent: DOMElement,
36 rect: Rectangle,
37 isAbsolute: boolean,
38): void {
39 const existing = pendingClears.get(parent)
40 if (existing) {
41 existing.push(rect)
42 } else {
43 pendingClears.set(parent, [rect])
44 }
45 if (isAbsolute) {
46 absoluteNodeRemoved = true
47 }
48}
49
50export function consumeAbsoluteRemovedFlag(): boolean {
51 const had = absoluteNodeRemoved

Callers 1

collectRemovedRectsFunction · 0.85

Calls 3

getMethod · 0.65
pushMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected