From e35bbfffcb1f84b2fb0679759152ca0a5eabfad4 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sun, 7 Feb 2021 13:39:05 +0100 Subject: =?UTF-8?q?Remove=20captured=20expression=20=F0=9F=97=91=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/syntax/expr.rs | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/syntax/expr.rs') diff --git a/src/syntax/expr.rs b/src/syntax/expr.rs index a681aa32..3160e0e4 100644 --- a/src/syntax/expr.rs +++ b/src/syntax/expr.rs @@ -1,6 +1,5 @@ use super::*; use crate::color::RgbaColor; -use crate::eval::Slot; use crate::geom::{AngularUnit, LengthUnit}; /// An expression. @@ -51,11 +50,6 @@ pub enum Expr { If(ExprIf), /// A for expression: `#for x #in y { z }`. For(ExprFor), - /// A captured variable slot. - /// - /// This node is never created by parsing. It only results from an in-place - /// transformation of an identifier to a captured variable. - Captured(Slot), } impl Pretty for Expr { @@ -92,7 +86,6 @@ impl Pretty for Expr { Self::Let(v) => v.pretty(p), Self::If(v) => v.pretty(p), Self::For(v) => v.pretty(p), - Self::Captured(v) => v.borrow().pretty(p), } } } -- cgit v1.2.3