selfAndDescendants property

Iterable<TreeElement> get selfAndDescendants

This element and all its descendants, depth first (replaces JavaRosa's accept(ITreeVisitor)).

Implementation

Iterable<TreeElement> get selfAndDescendants sync* {
  yield this;
  for (final child in _children) {
    yield* child.selfAndDescendants;
  }
}