MCPcopy Create free account
hub / github.com/nodejs/node / attachSelection

Method attachSelection

deps/v8/tools/turbolizer/src/views/graph-view.ts:572–582  ·  view source on GitHub ↗
(selection: Set<string>)

Source from the content-addressed store, hash-verified

570 }
571
572 private attachSelection(selection: Set<string>): Array<GraphNode> {
573 if (!(selection instanceof Set)) return new Array<GraphNode>();
574 this.nodeSelectionHandler.clear();
575 const selected = [
576 ...this.graph.nodes(node =>
577 selection.has(this.state.selection.stringKey(node))
578 && (!this.state.hideDead || node.isLive()))
579 ];
580 this.nodeSelectionHandler.select(selected, true, false);
581 return selected;
582 }
583
584 private viewSelection(): void {
585 let minX;

Callers 1

initializeContentMethod · 0.95

Calls 5

isLiveMethod · 0.80
clearMethod · 0.65
hasMethod · 0.65
selectMethod · 0.65
nodesMethod · 0.45

Tested by

no test coverage detected