diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-01-27 11:50:51 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-01-27 11:50:51 +0100 |
| commit | ce8138c68557a2d158424a8aa6056d73ff9cb1ba (patch) | |
| tree | a90616fc9194a6814e9a36493e38c6efb65af7e3 /src/syntax/expr.rs | |
| parent | 710f88ccb2bceb9851a8fb0b7f131343ee33dbd5 (diff) | |
Scope variables in blocks 🏔️
Diffstat (limited to 'src/syntax/expr.rs')
| -rw-r--r-- | src/syntax/expr.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/syntax/expr.rs b/src/syntax/expr.rs index 9f3bd9ad..15c53cc0 100644 --- a/src/syntax/expr.rs +++ b/src/syntax/expr.rs @@ -147,6 +147,8 @@ pub type ExprGroup = SpanBox<Expr>; pub struct ExprBlock { /// The list of expressions contained in the block. pub exprs: SpanVec<Expr>, + /// Whether the block should create a scope. + pub scopes: bool, } impl Pretty for ExprBlock { |
