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/0044_block_items.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/0044_block_items.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0044_block_items.txt | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0044_block_items.txt b/crates/ra_syntax/test_data/parser/inline/ok/0044_block_items.txt index d1a8c560a..e75d569f0 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0044_block_items.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0044_block_items.txt | |||
@@ -8,21 +8,23 @@ SOURCE_FILE@[0; 21) | |||
8 | L_PAREN@[4; 5) "(" | 8 | L_PAREN@[4; 5) "(" |
9 | R_PAREN@[5; 6) ")" | 9 | R_PAREN@[5; 6) ")" |
10 | WHITESPACE@[6; 7) " " | 10 | WHITESPACE@[6; 7) " " |
11 | BLOCK@[7; 20) | 11 | BLOCK_EXPR@[7; 20) |
12 | L_CURLY@[7; 8) "{" | 12 | BLOCK@[7; 20) |
13 | WHITESPACE@[8; 9) " " | 13 | L_CURLY@[7; 8) "{" |
14 | FN_DEF@[9; 18) | 14 | WHITESPACE@[8; 9) " " |
15 | FN_KW@[9; 11) "fn" | 15 | FN_DEF@[9; 18) |
16 | WHITESPACE@[11; 12) " " | 16 | FN_KW@[9; 11) "fn" |
17 | NAME@[12; 13) | 17 | WHITESPACE@[11; 12) " " |
18 | IDENT@[12; 13) "b" | 18 | NAME@[12; 13) |
19 | PARAM_LIST@[13; 15) | 19 | IDENT@[12; 13) "b" |
20 | L_PAREN@[13; 14) "(" | 20 | PARAM_LIST@[13; 15) |
21 | R_PAREN@[14; 15) ")" | 21 | L_PAREN@[13; 14) "(" |
22 | WHITESPACE@[15; 16) " " | 22 | R_PAREN@[14; 15) ")" |
23 | BLOCK@[16; 18) | 23 | WHITESPACE@[15; 16) " " |
24 | L_CURLY@[16; 17) "{" | 24 | BLOCK_EXPR@[16; 18) |
25 | R_CURLY@[17; 18) "}" | 25 | BLOCK@[16; 18) |
26 | WHITESPACE@[18; 19) " " | 26 | L_CURLY@[16; 17) "{" |
27 | R_CURLY@[19; 20) "}" | 27 | R_CURLY@[17; 18) "}" |
28 | WHITESPACE@[18; 19) " " | ||
29 | R_CURLY@[19; 20) "}" | ||
28 | WHITESPACE@[20; 21) "\n" | 30 | WHITESPACE@[20; 21) "\n" |