diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-09-02 20:20:24 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2019-09-02 20:20:24 +0100 |
commit | 7faec1c30046769d4ae490e15cf5405bcfbdeef8 (patch) | |
tree | 6d268b721027a5350928a6c5a0ec227b5fde8ebc /crates/ra_syntax/test_data/parser/inline/ok/0080_postfix_range.txt | |
parent | a8397deab914240aca8f015fb3736689919c0a5b (diff) | |
parent | e94587e3153b52684fd3f6b82c8e7efc09ff5c8d (diff) |
Merge #1752
1752: Always wrap blocks into block expressions r=flodiebold a=matklad
This way, things like function bodies are expressions, and we don't have to single them out
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0080_postfix_range.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0080_postfix_range.txt | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0080_postfix_range.txt b/crates/ra_syntax/test_data/parser/inline/ok/0080_postfix_range.txt index 541add812..f3c292f5e 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0080_postfix_range.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0080_postfix_range.txt | |||
@@ -8,23 +8,24 @@ SOURCE_FILE@[0; 26) | |||
8 | L_PAREN@[6; 7) "(" | 8 | L_PAREN@[6; 7) "(" |
9 | R_PAREN@[7; 8) ")" | 9 | R_PAREN@[7; 8) ")" |
10 | WHITESPACE@[8; 9) " " | 10 | WHITESPACE@[8; 9) " " |
11 | BLOCK@[9; 25) | 11 | BLOCK_EXPR@[9; 25) |
12 | L_CURLY@[9; 10) "{" | 12 | BLOCK@[9; 25) |
13 | WHITESPACE@[10; 11) " " | 13 | L_CURLY@[9; 10) "{" |
14 | LET_STMT@[11; 23) | 14 | WHITESPACE@[10; 11) " " |
15 | LET_KW@[11; 14) "let" | 15 | LET_STMT@[11; 23) |
16 | WHITESPACE@[14; 15) " " | 16 | LET_KW@[11; 14) "let" |
17 | BIND_PAT@[15; 16) | 17 | WHITESPACE@[14; 15) " " |
18 | NAME@[15; 16) | 18 | BIND_PAT@[15; 16) |
19 | IDENT@[15; 16) "x" | 19 | NAME@[15; 16) |
20 | WHITESPACE@[16; 17) " " | 20 | IDENT@[15; 16) "x" |
21 | EQ@[17; 18) "=" | 21 | WHITESPACE@[16; 17) " " |
22 | WHITESPACE@[18; 19) " " | 22 | EQ@[17; 18) "=" |
23 | RANGE_EXPR@[19; 22) | 23 | WHITESPACE@[18; 19) " " |
24 | LITERAL@[19; 20) | 24 | RANGE_EXPR@[19; 22) |
25 | INT_NUMBER@[19; 20) "1" | 25 | LITERAL@[19; 20) |
26 | DOTDOT@[20; 22) ".." | 26 | INT_NUMBER@[19; 20) "1" |
27 | SEMI@[22; 23) ";" | 27 | DOTDOT@[20; 22) ".." |
28 | WHITESPACE@[23; 24) " " | 28 | SEMI@[22; 23) ";" |
29 | R_CURLY@[24; 25) "}" | 29 | WHITESPACE@[23; 24) " " |
30 | R_CURLY@[24; 25) "}" | ||
30 | WHITESPACE@[25; 26) "\n" | 31 | WHITESPACE@[25; 26) "\n" |