* Discovers the parent and the root. Runs asynchronously via scheduler. * @private
()
| 439 | * @private |
| 440 | */ |
| 441 | discover_() { |
| 442 | if (!this.isDiscoverable()) { |
| 443 | // The discoverability might have changed while this task was in the |
| 444 | // queue. |
| 445 | return; |
| 446 | } |
| 447 | const closestNode = ContextNode.closest(this.node, /* includeSelf */ false); |
| 448 | const parent = closestNode?.findGroup(this.node) || closestNode; |
| 449 | this.updateTree_(parent, /* parentOverridden */ false); |
| 450 | } |
| 451 | |
| 452 | /** |
| 453 | * @param {?ContextNode<?>} parent |
nothing calls this directly
no test coverage detected