1
Fork 0

Improve function names

This commit is contained in:
Noah Lev 2022-02-17 16:24:22 -08:00
parent 713a11b919
commit 29a5c363c7
2 changed files with 4 additions and 4 deletions

View file

@ -1220,7 +1220,7 @@ impl<'a> Parser<'a> {
Ok(()) Ok(())
} }
pub(super) fn maybe_recover_from_prefix_increment( pub(super) fn recover_from_prefix_increment(
&mut self, &mut self,
operand_expr: P<Expr>, operand_expr: P<Expr>,
op_span: Span, op_span: Span,
@ -1235,7 +1235,7 @@ impl<'a> Parser<'a> {
self.recover_from_inc_dec(operand_expr, kind, op_span) self.recover_from_inc_dec(operand_expr, kind, op_span)
} }
pub(super) fn maybe_recover_from_postfix_increment( pub(super) fn recover_from_postfix_increment(
&mut self, &mut self,
operand_expr: P<Expr>, operand_expr: P<Expr>,
op_span: Span, op_span: Span,

View file

@ -273,7 +273,7 @@ impl<'a> Parser<'a> {
let op_span = self.prev_token.span.to(self.token.span); let op_span = self.prev_token.span.to(self.token.span);
// Eat the second `+` // Eat the second `+`
self.bump(); self.bump();
lhs = self.maybe_recover_from_postfix_increment(lhs, op_span)?; lhs = self.recover_from_postfix_increment(lhs, op_span)?;
continue; continue;
} }
@ -601,7 +601,7 @@ impl<'a> Parser<'a> {
this.bump(); this.bump();
let operand_expr = this.parse_dot_or_call_expr(Default::default())?; let operand_expr = this.parse_dot_or_call_expr(Default::default())?;
this.maybe_recover_from_prefix_increment(operand_expr, pre_span, prev_is_semi) this.recover_from_prefix_increment(operand_expr, pre_span, prev_is_semi)
} }
token::Ident(..) if this.token.is_keyword(kw::Box) => { token::Ident(..) if this.token.is_keyword(kw::Box) => {
make_it!(this, attrs, |this, _| this.parse_box_expr(lo)) make_it!(this, attrs, |this, _| this.parse_box_expr(lo))