(&self)
| 117 | } |
| 118 | |
| 119 | pub const fn location(&self) -> Option<SourceLocation> { |
| 120 | match self { |
| 121 | Self::Codegen(codegen_error) => codegen_error.location, |
| 122 | Self::Parse(parse_error) => Some(parse_error.location), |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | pub const fn python_location(&self) -> (usize, usize) { |
| 127 | if let Some(location) = self.location() { |
no test coverage detected