allNodes method

Iterable<SemanticNode> allNodes()

Every node an agent can see: overlay layers first (they sit on top), then the page.

Implementation

Iterable<SemanticNode> allNodes() sync* {
  for (final layer in overlayLayers) {
    for (final n in layer.nodes) {
      yield* n.walk();
    }
  }
  yield* root.walk();
}