MCPcopy
hub / github.com/microsoft/vscode-js-debug / getRootTarget

Function getRootTarget

src/adapter/scriptSkipper/implementation.ts:391–398  ·  view source on GitHub ↗
(target: ITarget)

Source from the content-addressed store, hash-verified

389}
390
391function getRootTarget(target: ITarget): ITarget {
392 const parent = target.parent();
393 if (parent) {
394 return getRootTarget(parent);
395 } else {
396 return target;
397 }
398}

Callers 1

constructorMethod · 0.85

Calls 1

parentMethod · 0.65

Tested by

no test coverage detected