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/0027_unsafe_fn_in_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/0027_unsafe_fn_in_block.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/ok/0027_unsafe_fn_in_block.txt | 62 |
1 files changed, 32 insertions, 30 deletions
diff --git a/crates/ra_syntax/test_data/parser/ok/0027_unsafe_fn_in_block.txt b/crates/ra_syntax/test_data/parser/ok/0027_unsafe_fn_in_block.txt index f86375983..9fb7b70a0 100644 --- a/crates/ra_syntax/test_data/parser/ok/0027_unsafe_fn_in_block.txt +++ b/crates/ra_syntax/test_data/parser/ok/0027_unsafe_fn_in_block.txt | |||
@@ -8,34 +8,36 @@ SOURCE_FILE@[0; 53) | |||
8 | L_PAREN@[7; 8) "(" | 8 | L_PAREN@[7; 8) "(" |
9 | R_PAREN@[8; 9) ")" | 9 | R_PAREN@[8; 9) ")" |
10 | WHITESPACE@[9; 10) " " | 10 | WHITESPACE@[9; 10) " " |
11 | BLOCK@[10; 52) | 11 | BLOCK_EXPR@[10; 52) |
12 | L_CURLY@[10; 11) "{" | 12 | BLOCK@[10; 52) |
13 | WHITESPACE@[11; 16) "\n " | 13 | L_CURLY@[10; 11) "{" |
14 | FN_DEF@[16; 32) | 14 | WHITESPACE@[11; 16) "\n " |
15 | UNSAFE_KW@[16; 22) "unsafe" | 15 | FN_DEF@[16; 32) |
16 | WHITESPACE@[22; 23) " " | 16 | UNSAFE_KW@[16; 22) "unsafe" |
17 | FN_KW@[23; 25) "fn" | 17 | WHITESPACE@[22; 23) " " |
18 | WHITESPACE@[25; 26) " " | 18 | FN_KW@[23; 25) "fn" |
19 | NAME@[26; 27) | 19 | WHITESPACE@[25; 26) " " |
20 | IDENT@[26; 27) "f" | 20 | NAME@[26; 27) |
21 | PARAM_LIST@[27; 29) | 21 | IDENT@[26; 27) "f" |
22 | L_PAREN@[27; 28) "(" | 22 | PARAM_LIST@[27; 29) |
23 | R_PAREN@[28; 29) ")" | 23 | L_PAREN@[27; 28) "(" |
24 | WHITESPACE@[29; 30) " " | 24 | R_PAREN@[28; 29) ")" |
25 | BLOCK@[30; 32) | 25 | WHITESPACE@[29; 30) " " |
26 | L_CURLY@[30; 31) "{" | 26 | BLOCK_EXPR@[30; 32) |
27 | R_CURLY@[31; 32) "}" | 27 | BLOCK@[30; 32) |
28 | WHITESPACE@[32; 37) "\n " | 28 | L_CURLY@[30; 31) "{" |
29 | BLOCK_EXPR@[37; 50) | 29 | R_CURLY@[31; 32) "}" |
30 | UNSAFE_KW@[37; 43) "unsafe" | 30 | WHITESPACE@[32; 37) "\n " |
31 | WHITESPACE@[43; 44) " " | 31 | BLOCK_EXPR@[37; 50) |
32 | BLOCK@[44; 50) | 32 | UNSAFE_KW@[37; 43) "unsafe" |
33 | L_CURLY@[44; 45) "{" | 33 | WHITESPACE@[43; 44) " " |
34 | WHITESPACE@[45; 46) " " | 34 | BLOCK@[44; 50) |
35 | LITERAL@[46; 48) | 35 | L_CURLY@[44; 45) "{" |
36 | INT_NUMBER@[46; 48) "92" | 36 | WHITESPACE@[45; 46) " " |
37 | WHITESPACE@[48; 49) " " | 37 | LITERAL@[46; 48) |
38 | R_CURLY@[49; 50) "}" | 38 | INT_NUMBER@[46; 48) "92" |
39 | WHITESPACE@[50; 51) "\n" | 39 | WHITESPACE@[48; 49) " " |
40 | R_CURLY@[51; 52) "}" | 40 | R_CURLY@[49; 50) "}" |
41 | WHITESPACE@[50; 51) "\n" | ||
42 | R_CURLY@[51; 52) "}" | ||
41 | WHITESPACE@[52; 53) "\n" | 43 | WHITESPACE@[52; 53) "\n" |