(&self, cursor: Cursor)
| 77 | } |
| 78 | |
| 79 | fn cursor_to_str(&self, cursor: Cursor) -> &str { |
| 80 | let span = cursor.to_span(); |
| 81 | &self.source[span.start().0 as usize..span.end().0 as usize] |
| 82 | } |
| 83 | |
| 84 | /// Find the index of the ancestor at the given depth, searching backwards from `start_idx`. |
| 85 | fn find_ancestor_at_depth(&self, start_idx: usize, target_depth: usize) -> Option<usize> { |
no test coverage detected