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/0142_for_range_from.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/0142_for_range_from.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0142_for_range_from.txt | 60 |
1 files changed, 31 insertions, 29 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0142_for_range_from.txt b/crates/ra_syntax/test_data/parser/inline/ok/0142_for_range_from.txt index 9e5836233..eec1cba1e 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0142_for_range_from.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0142_for_range_from.txt | |||
@@ -8,33 +8,35 @@ SOURCE_FILE@[0; 51) | |||
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; 50) | 11 | BLOCK_EXPR@[9; 50) |
12 | L_CURLY@[9; 10) "{" | 12 | BLOCK@[9; 50) |
13 | WHITESPACE@[10; 14) "\n " | 13 | L_CURLY@[9; 10) "{" |
14 | FOR_EXPR@[14; 48) | 14 | WHITESPACE@[10; 14) "\n " |
15 | FOR_KW@[14; 17) "for" | 15 | FOR_EXPR@[14; 48) |
16 | WHITESPACE@[17; 18) " " | 16 | FOR_KW@[14; 17) "for" |
17 | BIND_PAT@[18; 19) | 17 | WHITESPACE@[17; 18) " " |
18 | NAME@[18; 19) | 18 | BIND_PAT@[18; 19) |
19 | IDENT@[18; 19) "x" | 19 | NAME@[18; 19) |
20 | WHITESPACE@[19; 20) " " | 20 | IDENT@[18; 19) "x" |
21 | IN_KW@[20; 22) "in" | 21 | WHITESPACE@[19; 20) " " |
22 | WHITESPACE@[22; 23) " " | 22 | IN_KW@[20; 22) "in" |
23 | RANGE_EXPR@[23; 27) | 23 | WHITESPACE@[22; 23) " " |
24 | LITERAL@[23; 24) | 24 | RANGE_EXPR@[23; 27) |
25 | INT_NUMBER@[23; 24) "0" | 25 | LITERAL@[23; 24) |
26 | WHITESPACE@[24; 25) " " | 26 | INT_NUMBER@[23; 24) "0" |
27 | DOTDOT@[25; 27) ".." | 27 | WHITESPACE@[24; 25) " " |
28 | WHITESPACE@[27; 28) " " | 28 | DOTDOT@[25; 27) ".." |
29 | BLOCK@[28; 48) | 29 | WHITESPACE@[27; 28) " " |
30 | L_CURLY@[28; 29) "{" | 30 | BLOCK_EXPR@[28; 48) |
31 | WHITESPACE@[29; 37) "\n " | 31 | BLOCK@[28; 48) |
32 | EXPR_STMT@[37; 43) | 32 | L_CURLY@[28; 29) "{" |
33 | BREAK_EXPR@[37; 42) | 33 | WHITESPACE@[29; 37) "\n " |
34 | BREAK_KW@[37; 42) "break" | 34 | EXPR_STMT@[37; 43) |
35 | SEMI@[42; 43) ";" | 35 | BREAK_EXPR@[37; 42) |
36 | WHITESPACE@[43; 47) "\n " | 36 | BREAK_KW@[37; 42) "break" |
37 | R_CURLY@[47; 48) "}" | 37 | SEMI@[42; 43) ";" |
38 | WHITESPACE@[48; 49) "\n" | 38 | WHITESPACE@[43; 47) "\n " |
39 | R_CURLY@[49; 50) "}" | 39 | R_CURLY@[47; 48) "}" |
40 | WHITESPACE@[48; 49) "\n" | ||
41 | R_CURLY@[49; 50) "}" | ||
40 | WHITESPACE@[50; 51) "\n" | 42 | WHITESPACE@[50; 51) "\n" |