Add span information to ExprKind::Assign

This commit is contained in:
varkor
2019-12-22 21:08:53 +00:00
parent 5ab4735559
commit 35979a92bf
25 changed files with 69 additions and 62 deletions

View File

@@ -2041,7 +2041,7 @@ impl<'a> State<'a> {
self.print_expr_maybe_paren(expr, parser::PREC_POSTFIX);
self.s.word(".await");
}
ast::ExprKind::Assign(ref lhs, ref rhs) => {
ast::ExprKind::Assign(ref lhs, ref rhs, _) => {
let prec = AssocOp::Assign.precedence() as i8;
self.print_expr_maybe_paren(lhs, prec + 1);
self.s.space();