Yield (name, child) pairs in a bottom-up manner
(self)
| 684 | return rv |
| 685 | |
| 686 | def traverse(self) -> Iterator[Tuple[str, "Assembly"]]: |
| 687 | """ |
| 688 | Yield (name, child) pairs in a bottom-up manner |
| 689 | """ |
| 690 | |
| 691 | for ch in self.children: |
| 692 | for el in ch.traverse(): |
| 693 | yield el |
| 694 | |
| 695 | yield (self.name, self) |
| 696 | |
| 697 | def _flatten(self, parents=[]): |
| 698 | """ |