walk method

Pre-order traversal.

Implementation

Iterable<SemanticNode> walk() sync* {
  yield this;
  for (final c in children) {
    yield* c.walk();
  }
}