MCPcopy Create free account
hub / github.com/Marus/cortex-debug / removeChild

Method removeChild

src/frontend/views/live-watch.ts:109–120  ·  view source on GitHub ↗
(node: LiveVariableNode)

Source from the content-addressed store, hash-verified

107 }
108
109 public removeChild(node: LiveVariableNode): boolean {
110 if (!node || !node.isRootChild()) { return false; }
111 let ix = 0;
112 for (const child of this.children || []) {
113 if (child.name === node.name) {
114 this.children.splice(ix, 1);
115 return true;
116 }
117 ix++;
118 }
119 return false;
120 }
121
122 public moveUpChild(node: LiveVariableNode): boolean {
123 if (!node || !node.isRootChild()) { return false; }

Callers 1

removeWatchExprMethod · 0.45

Calls 1

isRootChildMethod · 0.80

Tested by

no test coverage detected