From ce8138c68557a2d158424a8aa6056d73ff9cb1ba Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 27 Jan 2021 11:50:51 +0100 Subject: =?UTF-8?q?Scope=20variables=20in=20blocks=20=F0=9F=8F=94=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/syntax/expr.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/syntax/expr.rs') 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; pub struct ExprBlock { /// The list of expressions contained in the block. pub exprs: SpanVec, + /// Whether the block should create a scope. + pub scopes: bool, } impl Pretty for ExprBlock { -- cgit v1.2.3