(child: CDebugSession)
| 59 | } |
| 60 | |
| 61 | public add(child: CDebugSession) { |
| 62 | assert(!child.parent, 'child already has a parent?'); |
| 63 | if (this.children.find((x) => x === child)) { |
| 64 | assert(false, 'child already exists'); |
| 65 | } else { |
| 66 | this.children.push(child); |
| 67 | child.parent = this; |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | private removeChild(child: CDebugSession) { |
| 72 | this.children = this.children.filter((x) => x !== child); |
no outgoing calls
no test coverage detected