* Returns an iterator that lists all targets in the tree.
()
| 682 | * Returns an iterator that lists all targets in the tree. |
| 683 | */ |
| 684 | public *all(): IterableIterator<TargetTreeNode> { |
| 685 | if (isTargetTreeNode(this)) { |
| 686 | yield this; |
| 687 | } |
| 688 | |
| 689 | for (const child of this._children) { |
| 690 | yield* child.all(); |
| 691 | } |
| 692 | } |
| 693 | } |