diff options
author | Toby Dimmick <[email protected]> | 2020-02-06 20:39:27 +0000 |
---|---|---|
committer | Toby Dimmick <[email protected]> | 2020-02-06 20:39:27 +0000 |
commit | 0183952d2e1252a030aca3dafd8d7abe093be3a2 (patch) | |
tree | 896d6ad8db2ed85609f457dc662ef02ef2b624d0 /crates/ra_parser/src/grammar | |
parent | e1921ea59c04a21725caea53777c739e0a954f78 (diff) |
Closure params test
Diffstat (limited to 'crates/ra_parser/src/grammar')
-rw-r--r-- | crates/ra_parser/src/grammar/params.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ra_parser/src/grammar/params.rs b/crates/ra_parser/src/grammar/params.rs index 2445f71f7..d9fbc7c94 100644 --- a/crates/ra_parser/src/grammar/params.rs +++ b/crates/ra_parser/src/grammar/params.rs | |||
@@ -125,6 +125,10 @@ fn value_parameter(p: &mut Parser, flavor: Flavor) { | |||
125 | types::type_(p); | 125 | types::type_(p); |
126 | } | 126 | } |
127 | } | 127 | } |
128 | // test closure_params | ||
129 | // fn main() { | ||
130 | // let foo = |bar, baz: Baz, qux: Qux::Quux| (); | ||
131 | // } | ||
128 | Flavor::Closure => { | 132 | Flavor::Closure => { |
129 | patterns::pattern(p); | 133 | patterns::pattern(p); |
130 | if p.at(T![:]) && !p.at(T![::]) { | 134 | if p.at(T![:]) && !p.at(T![::]) { |