(node: LiveVariableNode)
| 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; } |
no test coverage detected