Closed
Description
Replace ExprType::Statement
with ExprType::SubExpression
if the statement is the last statement within its enclosing block.
Line 585 in 1cea171
One way to implement this is to add a wrapper type over ast::Stmt
which holds the information about whether it's the last statement or not:
struct Statement<'ast> {
stmt: &'ast ast::Stmt,
is_last: bool,
}
cc #3614.