selfAndParents property

Iterable<AstNode> selfAndParents

Returns an iterable containing this node and all parents.

Implementation

Iterable<AstNode> get selfAndParents sync* {
  yield this;
  yield* parents;
}