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

Function appendChildNode

src/ink/dom.ts:134–153  ·  view source on GitHub ↗
(
  node: DOMElement,
  childNode: DOMElement,
)

Source from the content-addressed store, hash-verified

132}
133
134export const appendChildNode = (
135 node: DOMElement,
136 childNode: DOMElement,
137): void => {
138 if (childNode.parentNode) {
139 removeChildNode(childNode.parentNode, childNode)
140 }
141
142 childNode.parentNode = node
143 node.childNodes.push(childNode)
144
145 if (childNode.yogaNode) {
146 node.yogaNode?.insertChild(
147 childNode.yogaNode,
148 node.yogaNode.getChildCount(),
149 )
150 }
151
152 markDirty(node)
153}
154
155export const insertBeforeNode = (
156 node: DOMElement,

Callers

nothing calls this directly

Calls 5

removeChildNodeFunction · 0.85
markDirtyFunction · 0.85
pushMethod · 0.45
insertChildMethod · 0.45
getChildCountMethod · 0.45

Tested by

no test coverage detected