diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-02-07 13:39:05 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-02-07 13:39:05 +0100 |
| commit | e35bbfffcb1f84b2fb0679759152ca0a5eabfad4 (patch) | |
| tree | 28123506b60be4e90ec611f8f3f9bb0ab5bec2f6 /src/syntax/expr.rs | |
| parent | 062d99f70fe5eed0fbc81182565b51360495e465 (diff) | |
Remove captured expression 🗑️
Diffstat (limited to 'src/syntax/expr.rs')
| -rw-r--r-- | src/syntax/expr.rs | 7 |
1 files changed, 0 insertions, 7 deletions
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), } } } |
