MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / containsComponent

Method containsComponent

packages/pi-tui/src/tui.ts:493–497  ·  view source on GitHub ↗
(root: Component, target: Component)

Source from the content-addressed store, hash-verified

491 }
492
493 private containsComponent(root: Component, target: Component): boolean {
494 if (root === target) return true;
495 if (!(root instanceof Container)) return false;
496 return root.children.some((child) => this.containsComponent(child, target));
497 }
498
499 /**
500 * Show an overlay component with configurable positioning and sizing.

Callers 1

isComponentMountedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected