visitChildren method

  1. @override
TreeVisitor<Binding> visitChildren(
  1. TreeVisitor<Binding> visitor
)
override

Implementation

@override
TreeVisitor<Binding> visitChildren(TreeVisitor<Binding> visitor) {
  if (visitor.stopped) return visitor;
  visitor(this);
  if (!visitor.stopped) {
    //
    for (var bind in children) {
      bind.visitChildren(visitor);
    }
  }
  return visitor;
  //
  // visitor(this);
  // for (var bind in _childrenBindings ?? <Binding>[]) {
  //   bind.visitChildren(visitor);
  // }
}