safelyVisitChildren method

void safelyVisitChildren(
  1. List<Element> children,
  2. ElementVisitor visitor
)
inherited

Use the given visitor to visit all of the children in the given array.

Implementation

void safelyVisitChildren(List<Element> children, ElementVisitor visitor) {
  for (Element child in children) {
    child.accept(visitor);
  }
}