Change to struct variants for better flexibility.

This commit is contained in:
Stephen Chung
2022-12-14 12:07:33 +08:00
parent 82a455b4d7
commit da7a887f67
5 changed files with 144 additions and 96 deletions

View File

@@ -573,8 +573,8 @@ pub enum Stmt {
Assignment(Box<(OpAssignment, BinaryExpr)>),
/// func `(` expr `,` ... `)`
///
/// Note - this is a duplicate of [`Expr::FnCall`] to cover the very common pattern of a single
/// function call forming one statement.
/// This is a duplicate of [`Expr::FnCall`] to cover the very common pattern of a single
/// function call forming one statement.
FnCall(Box<FnCallExpr>, Position),
/// `{` stmt`;` ... `}`
Block(Box<StmtBlock>),