(&mut self, token: Option<&CommonToken>, mut e: ParseError)
| 377 | } |
| 378 | |
| 379 | fn report_parse_error(&mut self, token: Option<&CommonToken>, mut e: ParseError) -> IdedExpr { |
| 380 | let expr = if let Some(token) = token { |
| 381 | self.helper.next_expr(token, Expr::default()) |
| 382 | } else { |
| 383 | IdedExpr { |
| 384 | id: 0, |
| 385 | expr: Expr::default(), |
| 386 | } |
| 387 | }; |
| 388 | e.expr_id = expr.id; |
| 389 | self.errors.push(e); |
| 390 | expr |
| 391 | } |
| 392 | } |
| 393 | |
| 394 | struct RecursionListener { |
no test coverage detected