diff options
author | Ville Penttinen <[email protected]> | 2019-03-24 17:45:11 +0000 |
---|---|---|
committer | Ville Penttinen <[email protected]> | 2019-03-31 11:20:56 +0100 |
commit | 3f62ab8f510fdac1eeab515c515c437d6dd141e6 (patch) | |
tree | 91bb5a70b999474e4d8212245fe265e71c3afde4 /crates/ra_syntax/tests | |
parent | 4666138c910a655deb0e8129b0a1dc5974b49bdf (diff) |
Add WherePred to allow predicate access in WhereClause
This also unifies parsing of WHERE_PRED bounds, now Lifetime bounds will also be
parsed using TYPE_BOUND_LIST
Diffstat (limited to 'crates/ra_syntax/tests')
-rw-r--r-- | crates/ra_syntax/tests/data/parser/inline/ok/0056_where_clause.txt | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/crates/ra_syntax/tests/data/parser/inline/ok/0056_where_clause.txt b/crates/ra_syntax/tests/data/parser/inline/ok/0056_where_clause.txt index e04b61eb3..77a62ab4d 100644 --- a/crates/ra_syntax/tests/data/parser/inline/ok/0056_where_clause.txt +++ b/crates/ra_syntax/tests/data/parser/inline/ok/0056_where_clause.txt | |||
@@ -15,11 +15,14 @@ SOURCE_FILE@[0; 116) | |||
15 | LIFETIME@[18; 20) "'a" | 15 | LIFETIME@[18; 20) "'a" |
16 | COLON@[20; 21) | 16 | COLON@[20; 21) |
17 | WHITESPACE@[21; 22) | 17 | WHITESPACE@[21; 22) |
18 | LIFETIME@[22; 24) "'b" | 18 | TYPE_BOUND_LIST@[22; 29) |
19 | WHITESPACE@[24; 25) | 19 | TYPE_BOUND@[22; 24) |
20 | PLUS@[25; 26) | 20 | LIFETIME@[22; 24) "'b" |
21 | WHITESPACE@[26; 27) | 21 | WHITESPACE@[24; 25) |
22 | LIFETIME@[27; 29) "'c" | 22 | PLUS@[25; 26) |
23 | WHITESPACE@[26; 27) | ||
24 | TYPE_BOUND@[27; 29) | ||
25 | LIFETIME@[27; 29) "'c" | ||
23 | COMMA@[29; 30) | 26 | COMMA@[29; 30) |
24 | WHITESPACE@[30; 34) | 27 | WHITESPACE@[30; 34) |
25 | WHERE_PRED@[34; 59) | 28 | WHERE_PRED@[34; 59) |