1
Fork 0

Emit both subexp and standalone sugg for postfix

This solves the TODO.
This commit is contained in:
Noah Lev 2022-02-17 14:52:52 -08:00
parent 7287f929b9
commit 62b8ea67b7
4 changed files with 70 additions and 31 deletions

View file

@ -273,9 +273,7 @@ impl<'a> Parser<'a> {
let op_span = self.prev_token.span.to(self.token.span);
// Eat the second `+`
self.bump();
// TODO: implement
let start_is_semi = false;
lhs = self.maybe_recover_from_postfix_increment(lhs, op_span, start_is_semi)?;
lhs = self.maybe_recover_from_postfix_increment(lhs, op_span)?;
continue;
}