Context
ve.dm.InternalList currently maintains at least two properties used to map indexes with listKeys. ve.dm.InternalList.keys and ve.dm.InternalList.keyIndexes. Since we want to introduce a new mechanism to map MWReferenceNodes with InternalItemNodes we're revisiting what's actually useful here.
Insights
ve.dm.InternalList.keys seems to be incomplete and thereby useless because it's only used with the listKey and not the listGroup and is therby not a useful map.
ve.dm.InternalList.keyIndexes seems only relevant in two places
- when the Convert adds InternalItemNodes for references in ve.dm.InternalList.queueItemHtml
- when two InternalLists are merged in ve.dm.InternalList.merge
Task
- Deprecate ve.dm.InternalList.keys
- Investigate if ve.dm.InternalList.keyIndexes is relevant in the merge case
- Potentially deprecate keyIndexes