leaves method

Lazily-computes the descendant leaf nodes of this node.

Implementation

Iterable<LeafNodeInfo> leaves() {
  return selfAndDescendants().whereType<LeafNodeInfo>();
}