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/ok/0049_async_block.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/ok/0049_async_block.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/ok/0049_async_block.txt | 49 |
1 files changed, 25 insertions, 24 deletions
diff --git a/crates/ra_syntax/test_data/parser/ok/0049_async_block.txt b/crates/ra_syntax/test_data/parser/ok/0049_async_block.txt index 517982ddc..aa6daff7d 100644 --- a/crates/ra_syntax/test_data/parser/ok/0049_async_block.txt +++ b/crates/ra_syntax/test_data/parser/ok/0049_async_block.txt | |||
@@ -8,28 +8,29 @@ SOURCE_FILE@[0; 47) | |||
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; 45) | 11 | BLOCK_EXPR@[9; 45) |
12 | L_CURLY@[9; 10) "{" | 12 | BLOCK@[9; 45) |
13 | WHITESPACE@[10; 15) "\n " | 13 | L_CURLY@[9; 10) "{" |
14 | EXPR_STMT@[15; 24) | 14 | WHITESPACE@[10; 15) "\n " |
15 | BLOCK_EXPR@[15; 23) | 15 | EXPR_STMT@[15; 24) |
16 | ASYNC_KW@[15; 20) "async" | 16 | BLOCK_EXPR@[15; 23) |
17 | WHITESPACE@[20; 21) " " | 17 | ASYNC_KW@[15; 20) "async" |
18 | BLOCK@[21; 23) | 18 | WHITESPACE@[20; 21) " " |
19 | L_CURLY@[21; 22) "{" | 19 | BLOCK@[21; 23) |
20 | R_CURLY@[22; 23) "}" | 20 | L_CURLY@[21; 22) "{" |
21 | SEMI@[23; 24) ";" | 21 | R_CURLY@[22; 23) "}" |
22 | WHITESPACE@[24; 29) "\n " | 22 | SEMI@[23; 24) ";" |
23 | EXPR_STMT@[29; 43) | 23 | WHITESPACE@[24; 29) "\n " |
24 | BLOCK_EXPR@[29; 42) | 24 | EXPR_STMT@[29; 43) |
25 | ASYNC_KW@[29; 34) "async" | 25 | BLOCK_EXPR@[29; 42) |
26 | WHITESPACE@[34; 35) " " | 26 | ASYNC_KW@[29; 34) "async" |
27 | MOVE_KW@[35; 39) "move" | 27 | WHITESPACE@[34; 35) " " |
28 | WHITESPACE@[39; 40) " " | 28 | MOVE_KW@[35; 39) "move" |
29 | BLOCK@[40; 42) | 29 | WHITESPACE@[39; 40) " " |
30 | L_CURLY@[40; 41) "{" | 30 | BLOCK@[40; 42) |
31 | R_CURLY@[41; 42) "}" | 31 | L_CURLY@[40; 41) "{" |
32 | SEMI@[42; 43) ";" | 32 | R_CURLY@[41; 42) "}" |
33 | WHITESPACE@[43; 44) "\n" | 33 | SEMI@[42; 43) ";" |
34 | R_CURLY@[44; 45) "}" | 34 | WHITESPACE@[43; 44) "\n" |
35 | R_CURLY@[44; 45) "}" | ||
35 | WHITESPACE@[45; 47) "\n\n" | 36 | WHITESPACE@[45; 47) "\n\n" |