MCPcopy
hub / github.com/angular/angular / recordDuplicateKeys

Function recordDuplicateKeys

packages/core/src/render3/list_reconciliation.ts:75–83  ·  view source on GitHub ↗
(keyToIdx: Map<unknown, Set<number>>, key: unknown, idx: number)

Source from the content-addressed store, hash-verified

73}
74
75function recordDuplicateKeys(keyToIdx: Map<unknown, Set<number>>, key: unknown, idx: number): void {
76 const idxSoFar = keyToIdx.get(key);
77
78 if (idxSoFar !== undefined) {
79 idxSoFar.add(idx);
80 } else {
81 keyToIdx.set(key, new Set([idx]));
82 }
83}
84
85/**
86 * The live collection reconciliation algorithm that perform various in-place operations, so it

Callers 1

reconcileFunction · 0.85

Calls 3

getMethod · 0.65
addMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…