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/0021_extern_fn.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/0021_extern_fn.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/ok/0021_extern_fn.txt | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/crates/ra_syntax/test_data/parser/ok/0021_extern_fn.txt b/crates/ra_syntax/test_data/parser/ok/0021_extern_fn.txt index a4e75ec75..974fb9c44 100644 --- a/crates/ra_syntax/test_data/parser/ok/0021_extern_fn.txt +++ b/crates/ra_syntax/test_data/parser/ok/0021_extern_fn.txt | |||
@@ -11,10 +11,11 @@ SOURCE_FILE@[0; 71) | |||
11 | L_PAREN@[13; 14) "(" | 11 | L_PAREN@[13; 14) "(" |
12 | R_PAREN@[14; 15) ")" | 12 | R_PAREN@[14; 15) ")" |
13 | WHITESPACE@[15; 16) " " | 13 | WHITESPACE@[15; 16) " " |
14 | BLOCK@[16; 19) | 14 | BLOCK_EXPR@[16; 19) |
15 | L_CURLY@[16; 17) "{" | 15 | BLOCK@[16; 19) |
16 | WHITESPACE@[17; 18) "\n" | 16 | L_CURLY@[16; 17) "{" |
17 | R_CURLY@[18; 19) "}" | 17 | WHITESPACE@[17; 18) "\n" |
18 | R_CURLY@[18; 19) "}" | ||
18 | WHITESPACE@[19; 21) "\n\n" | 19 | WHITESPACE@[19; 21) "\n\n" |
19 | FN_DEF@[21; 44) | 20 | FN_DEF@[21; 44) |
20 | ABI@[21; 31) | 21 | ABI@[21; 31) |
@@ -30,10 +31,11 @@ SOURCE_FILE@[0; 71) | |||
30 | L_PAREN@[38; 39) "(" | 31 | L_PAREN@[38; 39) "(" |
31 | R_PAREN@[39; 40) ")" | 32 | R_PAREN@[39; 40) ")" |
32 | WHITESPACE@[40; 41) " " | 33 | WHITESPACE@[40; 41) " " |
33 | BLOCK@[41; 44) | 34 | BLOCK_EXPR@[41; 44) |
34 | L_CURLY@[41; 42) "{" | 35 | BLOCK@[41; 44) |
35 | WHITESPACE@[42; 43) "\n" | 36 | L_CURLY@[41; 42) "{" |
36 | R_CURLY@[43; 44) "}" | 37 | WHITESPACE@[42; 43) "\n" |
38 | R_CURLY@[43; 44) "}" | ||
37 | WHITESPACE@[44; 46) "\n\n" | 39 | WHITESPACE@[44; 46) "\n\n" |
38 | FN_DEF@[46; 70) | 40 | FN_DEF@[46; 70) |
39 | ABI@[46; 57) | 41 | ABI@[46; 57) |
@@ -49,8 +51,9 @@ SOURCE_FILE@[0; 71) | |||
49 | L_PAREN@[64; 65) "(" | 51 | L_PAREN@[64; 65) "(" |
50 | R_PAREN@[65; 66) ")" | 52 | R_PAREN@[65; 66) ")" |
51 | WHITESPACE@[66; 67) " " | 53 | WHITESPACE@[66; 67) " " |
52 | BLOCK@[67; 70) | 54 | BLOCK_EXPR@[67; 70) |
53 | L_CURLY@[67; 68) "{" | 55 | BLOCK@[67; 70) |
54 | WHITESPACE@[68; 69) "\n" | 56 | L_CURLY@[67; 68) "{" |
55 | R_CURLY@[69; 70) "}" | 57 | WHITESPACE@[68; 69) "\n" |
58 | R_CURLY@[69; 70) "}" | ||
56 | WHITESPACE@[70; 71) "\n" | 59 | WHITESPACE@[70; 71) "\n" |