selfAndParents property

Iterable<AstNode> get selfAndParents

Returns an iterable containing this node and all parents.

Implementation

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