allDescendants property
Recursively returns all descendants of this node, e.g. its children, their children and so on. The tree will be pre-order traversed.
Implementation
Iterable<AstNode> get allDescendants sync* {
for (final child in childNodes) {
yield child;
yield* child.allDescendants;
}
}