(
&mut self,
token: &CommonToken,
e: Option<E>,
s: S,
)
| 361 | } |
| 362 | |
| 363 | fn report_error<E: Error + Send + Sync + 'static, S: Into<String>>( |
| 364 | &mut self, |
| 365 | token: &CommonToken, |
| 366 | e: Option<E>, |
| 367 | s: S, |
| 368 | ) -> IdedExpr { |
| 369 | let error = ParseError { |
| 370 | source: e.map(|e| e.into()), |
| 371 | pos: (token.line, token.column + 1), |
| 372 | msg: s.into(), |
| 373 | expr_id: 0, |
| 374 | source_info: None, |
| 375 | }; |
| 376 | self.report_parse_error(Some(token), error) |
| 377 | } |
| 378 | |
| 379 | fn report_parse_error(&mut self, token: Option<&CommonToken>, mut e: ParseError) -> IdedExpr { |
| 380 | let expr = if let Some(token) = token { |
no test coverage detected