(&self)
| 124 | } |
| 125 | |
| 126 | pub const fn python_location(&self) -> (usize, usize) { |
| 127 | if let Some(location) = self.location() { |
| 128 | (location.line.get(), location.character_offset.get()) |
| 129 | } else { |
| 130 | (0, 0) |
| 131 | } |
| 132 | } |
| 133 | |
| 134 | pub fn python_end_location(&self) -> Option<(usize, usize)> { |
| 135 | match self { |
no test coverage detected