(&mut self, ctx: &NullContext<'_>)
| 1045 | } |
| 1046 | |
| 1047 | fn visit_Null(&mut self, ctx: &NullContext<'_>) -> Self::Return { |
| 1048 | match ctx.tok.as_deref() { |
| 1049 | Some(token) => self |
| 1050 | .helper |
| 1051 | .next_expr(token, Expr::Literal(LiteralValue::Null)), |
| 1052 | None => self.report_error::<ParseError, _>(&ctx.start(), None, "Incomplete null!"), |
| 1053 | } |
| 1054 | } |
| 1055 | } |
| 1056 | |
| 1057 | pub struct ParserHelper { |