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

Method insertChild

src/native-ts/yoga-layout/index.ts:520–524  ·  view source on GitHub ↗
(child: Node, index: number)

Source from the content-addressed store, hash-verified

518 // -- Tree
519
520 insertChild(child: Node, index: number): void {
521 child.parent = this
522 this.children.splice(index, 0, child)
523 this.markDirty()
524 }
525 removeChild(child: Node): void {
526 const idx = this.children.indexOf(child)
527 if (idx >= 0) {

Callers

nothing calls this directly

Calls 2

markDirtyMethod · 0.95
spliceMethod · 0.80

Tested by

no test coverage detected