MCPcopy Create free account
hub / github.com/Snapchat/Valdi / setParent

Method setParent

valdi/vscode_debugger/src/targets/node/nodeTarget.ts:134–138  ·  view source on GitHub ↗
(parent?: NodeTarget)

Source from the content-addressed store, hash-verified

132 }
133
134 public setParent(parent?: NodeTarget) {
135 if (this._parent) this._parent._children.splice(this._parent._children.indexOf(this), 1);
136 this._parent = parent;
137 if (this._parent) this._parent._children.push(this);
138 }
139
140 private async _disconnected() {
141 this._children.forEach(child => child.setParent(this._parent));

Callers 2

_startSessionFunction · 0.95
_disconnectedMethod · 0.95

Calls 2

indexOfMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected