Streamine StmtBlock.

This commit is contained in:
Stephen Chung
2021-04-16 13:15:11 +08:00
parent 980a13ca42
commit 1f987ec61a
5 changed files with 173 additions and 137 deletions

View File

@@ -2888,7 +2888,7 @@ fn make_curry_from_externals(
let mut statements: StaticVec<_> = Default::default();
statements.extend(externals.into_iter().map(Stmt::Share));
statements.push(Stmt::Expr(expr));
Expr::Stmt(Box::new(StmtBlock(statements, pos)))
Expr::Stmt(Box::new(StmtBlock::new(statements, pos)))
}
/// Parse an anonymous function definition.