Skip to content
This repository was archived by the owner on Jan 25, 2024. It is now read-only.
Prev Previous commit
keep the range of @foo in ExprSource
  • Loading branch information
symphorien committed Jul 29, 2022
commit c9d12315671cb5a2802e380578410e4e995f6344
2 changes: 1 addition & 1 deletion src/eval.rs
Original file line number Diff line number Diff line change
@@ -128,7 +128,7 @@ pub enum ExprSource {
/// whether the patter is incomplete (contains `...`)
ellipsis: bool,
/// the identifier bound by `@`
at: Option<String>,
at: Option<ExprResultBox>,
},
Lambda {
/// A `Pattern` or an `Identifier`
2 changes: 1 addition & 1 deletion src/parse.rs
Original file line number Diff line number Diff line change
@@ -406,7 +406,7 @@ impl Expr {
Some(at) => {
let string = at.as_str().to_string();
names.insert(string.clone());
Some(string)
Some(recurse_box(at.node().clone()))
}
};
for entry in pattern.entries() {