buildScopeFor method

void buildScopeFor(
  1. Element root,
  2. Element element
)

Rebuilds element when it is dirty and under root.

Implementation

void buildScopeFor(Element root, Element element) {
  if (!_dirty.remove(element)) return;
  if (!_isDescendantOf(element, root)) return;
  _logBuild(element);
  element.rebuild();
}