True if this expression could be mistakenly bound with an expression on the left.
(expr: &pr::ExprKind)
| 304 | |
| 305 | /// True if this expression could be mistakenly bound with an expression on the left. |
| 306 | fn can_bind_left(expr: &pr::ExprKind) -> bool { |
| 307 | matches!( |
| 308 | expr, |
| 309 | pr::ExprKind::Unary(pr::UnaryExpr { |
| 310 | op: pr::UnOp::EqSelf | pr::UnOp::Add | pr::UnOp::Neg, |
| 311 | .. |
| 312 | }) |
| 313 | ) |
| 314 | } |
| 315 | |
| 316 | impl WriteSource for pr::Ident { |
| 317 | fn write(&self, mut opt: WriteOpt) -> Option<String> { |