intelligently add parens when inlining local varaibles

This commit is contained in:
gfreezy 2019-03-26 01:02:06 +08:00
parent 56f3524c69
commit 4ca51cfbcf
5 changed files with 402 additions and 45 deletions

View file

@ -760,6 +760,7 @@ impl ExprCollector {
ast::ExprKind::Label(_e) => self.alloc_expr(Expr::Missing, syntax_ptr),
ast::ExprKind::IndexExpr(_e) => self.alloc_expr(Expr::Missing, syntax_ptr),
ast::ExprKind::RangeExpr(_e) => self.alloc_expr(Expr::Missing, syntax_ptr),
ast::ExprKind::MacroCall(_e) => self.alloc_expr(Expr::Missing, syntax_ptr),
}
}