MCPcopy Index your code
hub / github.com/Marus/cortex-debug / add

Method add

src/frontend/cortex_debug_session.ts:61–69  ·  view source on GitHub ↗
(child: CDebugSession)

Source from the content-addressed store, hash-verified

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);

Callers 4

moveToRootMethod · 0.45
NewSessionStartedMethod · 0.45
getAllUsedPortsMethod · 0.45
addUsedPortsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected