summaryrefslogtreecommitdiff
path: root/src/syntax
diff options
context:
space:
mode:
Diffstat (limited to 'src/syntax')
-rw-r--r--src/syntax/expr.rs2
-rw-r--r--src/syntax/visit.rs8
2 files changed, 2 insertions, 8 deletions
diff --git a/src/syntax/expr.rs b/src/syntax/expr.rs
index 11a85404..68b96f9c 100644
--- a/src/syntax/expr.rs
+++ b/src/syntax/expr.rs
@@ -190,8 +190,6 @@ pub struct BlockExpr {
pub span: Span,
/// The list of expressions contained in the block.
pub exprs: Vec<Expr>,
- /// Whether the block should create a scope.
- pub scoping: bool,
}
/// A unary operation: `-x`.
diff --git a/src/syntax/visit.rs b/src/syntax/visit.rs
index d689209b..40e8eb93 100644
--- a/src/syntax/visit.rs
+++ b/src/syntax/visit.rs
@@ -158,15 +158,11 @@ impl_visitors! {
}
visit_block(v, block: BlockExpr) {
- if block.scoping {
- v.visit_enter();
- }
+ v.visit_enter();
for expr in r!(block.exprs) {
v.visit_expr(expr);
}
- if block.scoping {
- v.visit_exit();
- }
+ v.visit_exit();
}
visit_binary(v, binary: BinaryExpr) {