MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / removeNode

Method removeNode

src/shared/test/test_model.ts:696–704  ·  view source on GitHub ↗
(node: TreeNode)

Source from the content-addressed store, hash-verified

694 }
695
696 private removeNode(node: TreeNode) {
697 const parent = node.parent;
698 if (parent) {
699 const index = parent.children.indexOf(node);
700 if (index > -1)
701 parent.children.splice(index, 1);
702 }
703 this.updateNode({ node, nodeWasRemoved: true });
704 }
705}
706
707export class SuiteData {

Callers 3

clearSuiteOrDirectoryMethod · 0.95
setupRangeTrackingMethod · 0.95

Calls 1

updateNodeMethod · 0.95

Tested by

no test coverage detected