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/0105_block_expr.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/0105_block_expr.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0105_block_expr.txt | 63 |
1 files changed, 32 insertions, 31 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0105_block_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0105_block_expr.txt index 4bc446a55..6bce37a4f 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0105_block_expr.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0105_block_expr.txt | |||
@@ -8,35 +8,36 @@ SOURCE_FILE@[0; 52) | |||
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; 51) | 11 | BLOCK_EXPR@[9; 51) |
12 | L_CURLY@[9; 10) "{" | 12 | BLOCK@[9; 51) |
13 | WHITESPACE@[10; 15) "\n " | 13 | L_CURLY@[9; 10) "{" |
14 | EXPR_STMT@[15; 18) | 14 | WHITESPACE@[10; 15) "\n " |
15 | BLOCK_EXPR@[15; 17) | 15 | EXPR_STMT@[15; 18) |
16 | BLOCK@[15; 17) | 16 | BLOCK_EXPR@[15; 17) |
17 | L_CURLY@[15; 16) "{" | 17 | BLOCK@[15; 17) |
18 | R_CURLY@[16; 17) "}" | 18 | L_CURLY@[15; 16) "{" |
19 | SEMI@[17; 18) ";" | 19 | R_CURLY@[16; 17) "}" |
20 | WHITESPACE@[18; 23) "\n " | 20 | SEMI@[17; 18) ";" |
21 | EXPR_STMT@[23; 33) | 21 | WHITESPACE@[18; 23) "\n " |
22 | BLOCK_EXPR@[23; 32) | 22 | EXPR_STMT@[23; 33) |
23 | UNSAFE_KW@[23; 29) "unsafe" | 23 | BLOCK_EXPR@[23; 32) |
24 | WHITESPACE@[29; 30) " " | 24 | UNSAFE_KW@[23; 29) "unsafe" |
25 | BLOCK@[30; 32) | 25 | WHITESPACE@[29; 30) " " |
26 | L_CURLY@[30; 31) "{" | 26 | BLOCK@[30; 32) |
27 | R_CURLY@[31; 32) "}" | 27 | L_CURLY@[30; 31) "{" |
28 | SEMI@[32; 33) ";" | 28 | R_CURLY@[31; 32) "}" |
29 | WHITESPACE@[33; 38) "\n " | 29 | SEMI@[32; 33) ";" |
30 | EXPR_STMT@[38; 49) | 30 | WHITESPACE@[33; 38) "\n " |
31 | BLOCK_EXPR@[38; 48) | 31 | EXPR_STMT@[38; 49) |
32 | LABEL@[38; 45) | 32 | BLOCK_EXPR@[38; 48) |
33 | LIFETIME@[38; 44) "\'label" | 33 | LABEL@[38; 45) |
34 | COLON@[44; 45) ":" | 34 | LIFETIME@[38; 44) "\'label" |
35 | WHITESPACE@[45; 46) " " | 35 | COLON@[44; 45) ":" |
36 | BLOCK@[46; 48) | 36 | WHITESPACE@[45; 46) " " |
37 | L_CURLY@[46; 47) "{" | 37 | BLOCK@[46; 48) |
38 | R_CURLY@[47; 48) "}" | 38 | L_CURLY@[46; 47) "{" |
39 | SEMI@[48; 49) ";" | 39 | R_CURLY@[47; 48) "}" |
40 | WHITESPACE@[49; 50) "\n" | 40 | SEMI@[48; 49) ";" |
41 | R_CURLY@[50; 51) "}" | 41 | WHITESPACE@[49; 50) "\n" |
42 | R_CURLY@[50; 51) "}" | ||
42 | WHITESPACE@[51; 52) "\n" | 43 | WHITESPACE@[51; 52) "\n" |