Finds the outermost context.
(self)
| 727 | return rv.lstrip() |
| 728 | |
| 729 | def find_root(self) -> Context: |
| 730 | """Finds the outermost context.""" |
| 731 | node = self |
| 732 | while node.parent is not None: |
| 733 | node = node.parent |
| 734 | return node |
| 735 | |
| 736 | def find_object(self, object_type: type[V]) -> V | None: |
| 737 | """Finds the closest object of a given type.""" |