visitChildren method

void visitChildren (SemanticsNodeVisitor visitor)

Visits the immediate children of this node.

This function calls visitor for each immediate child until visitor returns false. Returns true if all the visitor calls returned true, otherwise returns false.

Implementation

void visitChildren(SemanticsNodeVisitor visitor) {
  if (_children != null) {
    for (SemanticsNode child in _children) {
      if (!visitor(child))
        return;
    }
  }
}