Unnamed repository; edit this file 'description' to name the repository.
Produce ClosureBinder node in atom.rs
| -rw-r--r-- | crates/parser/src/grammar/expressions/atom.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/parser/src/grammar/expressions/atom.rs b/crates/parser/src/grammar/expressions/atom.rs index 8cc332d463..68b0c8f5c7 100644 --- a/crates/parser/src/grammar/expressions/atom.rs +++ b/crates/parser/src/grammar/expressions/atom.rs @@ -563,7 +563,9 @@ fn closure_expr(p: &mut Parser<'_>) -> CompletedMarker { let m = p.start(); if p.at(T![for]) { + let b = p.start(); types::for_binder(p); + b.complete(p, CLOSURE_BINDER); } // test const_closure // fn main() { let cl = const || _ = 0; } |