MCPcopy Index your code
hub / github.com/angular/components / _emitExpansionChanges

Method _emitExpansionChanges

src/cdk/tree/tree.ts:443–457  ·  view source on GitHub ↗
(expansionChanges: SelectionChange<K> | null)

Source from the content-addressed store, hash-verified

441 }
442
443 private _emitExpansionChanges(expansionChanges: SelectionChange<K> | null) {
444 if (!expansionChanges) {
445 return;
446 }
447
448 const nodes = this._nodes.value;
449 for (const added of expansionChanges.added) {
450 const node = nodes.get(added);
451 node?._emitExpansionState(true);
452 }
453 for (const removed of expansionChanges.removed) {
454 const node = nodes.get(removed);
455 node?._emitExpansionState(false);
456 }
457 }
458
459 private _initializeKeyManager() {
460 const items = combineLatest([this._keyManagerNodes, this._nodes]).pipe(

Callers 1

_getRenderDataMethod · 0.95

Calls 2

_emitExpansionStateMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected