* Designates (or undesignates) the node as a root node. If the node is * designated as a root, it will no longer discover itself. * * @param {boolean} isRoot
(isRoot)
| 320 | * @param {boolean} isRoot |
| 321 | */ |
| 322 | setIsRoot(isRoot) { |
| 323 | this.isRoot = isRoot; |
| 324 | const newRoot = isRoot ? this : (this.parent?.root ?? null); |
| 325 | this.updateRoot(newRoot); |
| 326 | } |
| 327 | |
| 328 | /** |
| 329 | * @param {?ContextNode<?>} root |
no test coverage detected