(self, pos: int)
| 3974 | return any(segment.start_pos == pos or segment.end_pos == pos for segment in self.segments) |
| 3975 | |
| 3976 | def is_reusable_boundary(self, pos: int) -> bool: |
| 3977 | if pos <= 0 or pos >= self.length: |
| 3978 | return True |
| 3979 | if self.is_boundary(pos): |
| 3980 | return True |
| 3981 | return self.segment_at(pos).kind == "text" |
| 3982 | |
| 3983 | def clamp_to_reusable_boundary(self, pos: int) -> int: |
| 3984 | if pos <= 0: |
no test coverage detected