descendants property

Iterable<Node> get descendants

This node's descendants in depth-first preorder.

Implementation

Iterable<Node> get descendants sync* {
  for (final child in children) {
    yield child;
    yield* child.descendants;
  }
}