setChildrenIndexWithParentNode method

void setChildrenIndexWithParentNode(
  1. ContainerNode parent,
  2. Element current,
  3. String selectorName,
  4. int index,
)

Implementation

void setChildrenIndexWithParentNode(ContainerNode parent, Element current, String selectorName, int index) {
  if (!_cacheElementIndex.containsKey(parent)) {
    _cacheElementIndex[parent] = {};
  }
  int key = hash2(current.hashCode, selectorName);
  _cacheElementIndex[parent]![key] = index;
}