7 instantiations of KeyedItemInfo
Microsoft.AspNetCore.Components (7)
Rendering\KeyedItemInfo.cs (2)
30=> new KeyedItemInfo(this, oldSiblingIndex, NewSiblingIndex); 33=> new KeyedItemInfo(this, OldSiblingIndex, newSiblingIndex);
RenderTree\RenderTreeDiffBuilder.cs (5)
119var oldKeyItemInfo = oldKey != null ? keyedItemInfos[oldKey] : new KeyedItemInfo(-1, -1); 120var newKeyItemInfo = newKey != null ? keyedItemInfos[newKey] : new KeyedItemInfo(-1, -1); 342result[key] = new KeyedItemInfo(oldStartIndex, -1); 356result[key] = new KeyedItemInfo(-1, newStartIndex); 365result[key] = new KeyedItemInfo(existingEntry.OldIndex, newStartIndex);
13 references to KeyedItemInfo
Microsoft.AspNetCore.Components (13)
Rendering\KeyedItemInfo.cs (3)
22private KeyedItemInfo(in KeyedItemInfo copyFrom, int oldSiblingIndex, int newSiblingIndex) 29public KeyedItemInfo WithOldSiblingIndex(int oldSiblingIndex) 32public KeyedItemInfo WithNewSiblingIndex(int newSiblingIndex)
Rendering\RenderBatchBuilder.cs (3)
40internal StackObjectPool<Dictionary<object, KeyedItemInfo>> KeyedItemInfoDictionaryPool { get; } 41= new StackObjectPool<Dictionary<object, KeyedItemInfo>>(maxPreservedItems: 10, () => new Dictionary<object, KeyedItemInfo>());
RenderTree\RenderTreeDiffBuilder.cs (7)
66Dictionary<object, KeyedItemInfo> keyedItemInfos = null; 119var oldKeyItemInfo = oldKey != null ? keyedItemInfos[oldKey] : new KeyedItemInfo(-1, -1); 120var newKeyItemInfo = newKey != null ? keyedItemInfos[newKey] : new KeyedItemInfo(-1, -1); 296var value = keyValuePair.Value; 325private static Dictionary<object, KeyedItemInfo> BuildKeyToInfoLookup(DiffContext diffContext, int oldStartIndex, int oldEndIndexExcl, int newStartIndex, int newEndIndexExcl) 354if (!result.TryGetValue(key, out var existingEntry)) 1052public readonly StackObjectPool<Dictionary<object, KeyedItemInfo>> KeyedItemInfoDictionaryPool;