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/0099_param_list.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/0099_param_list.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0099_param_list.txt | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0099_param_list.txt b/crates/ra_syntax/test_data/parser/inline/ok/0099_param_list.txt index 80d636819..ed57a9eea 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0099_param_list.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0099_param_list.txt | |||
@@ -8,9 +8,10 @@ SOURCE_FILE@[0; 67) | |||
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; 9) | 11 | BLOCK_EXPR@[7; 9) |
12 | L_CURLY@[7; 8) "{" | 12 | BLOCK@[7; 9) |
13 | R_CURLY@[8; 9) "}" | 13 | L_CURLY@[7; 8) "{" |
14 | R_CURLY@[8; 9) "}" | ||
14 | WHITESPACE@[9; 10) "\n" | 15 | WHITESPACE@[9; 10) "\n" |
15 | FN_DEF@[10; 25) | 16 | FN_DEF@[10; 25) |
16 | FN_KW@[10; 12) "fn" | 17 | FN_KW@[10; 12) "fn" |
@@ -32,9 +33,10 @@ SOURCE_FILE@[0; 67) | |||
32 | IDENT@[18; 21) "i32" | 33 | IDENT@[18; 21) "i32" |
33 | R_PAREN@[21; 22) ")" | 34 | R_PAREN@[21; 22) ")" |
34 | WHITESPACE@[22; 23) " " | 35 | WHITESPACE@[22; 23) " " |
35 | BLOCK@[23; 25) | 36 | BLOCK_EXPR@[23; 25) |
36 | L_CURLY@[23; 24) "{" | 37 | BLOCK@[23; 25) |
37 | R_CURLY@[24; 25) "}" | 38 | L_CURLY@[23; 24) "{" |
39 | R_CURLY@[24; 25) "}" | ||
38 | WHITESPACE@[25; 26) "\n" | 40 | WHITESPACE@[25; 26) "\n" |
39 | FN_DEF@[26; 43) | 41 | FN_DEF@[26; 43) |
40 | FN_KW@[26; 28) "fn" | 42 | FN_KW@[26; 28) "fn" |
@@ -58,9 +60,10 @@ SOURCE_FILE@[0; 67) | |||
58 | WHITESPACE@[38; 39) " " | 60 | WHITESPACE@[38; 39) " " |
59 | R_PAREN@[39; 40) ")" | 61 | R_PAREN@[39; 40) ")" |
60 | WHITESPACE@[40; 41) " " | 62 | WHITESPACE@[40; 41) " " |
61 | BLOCK@[41; 43) | 63 | BLOCK_EXPR@[41; 43) |
62 | L_CURLY@[41; 42) "{" | 64 | BLOCK@[41; 43) |
63 | R_CURLY@[42; 43) "}" | 65 | L_CURLY@[41; 42) "{" |
66 | R_CURLY@[42; 43) "}" | ||
64 | WHITESPACE@[43; 44) "\n" | 67 | WHITESPACE@[43; 44) "\n" |
65 | FN_DEF@[44; 66) | 68 | FN_DEF@[44; 66) |
66 | FN_KW@[44; 46) "fn" | 69 | FN_KW@[44; 46) "fn" |
@@ -93,7 +96,8 @@ SOURCE_FILE@[0; 67) | |||
93 | R_PAREN@[61; 62) ")" | 96 | R_PAREN@[61; 62) ")" |
94 | R_PAREN@[62; 63) ")" | 97 | R_PAREN@[62; 63) ")" |
95 | WHITESPACE@[63; 64) " " | 98 | WHITESPACE@[63; 64) " " |
96 | BLOCK@[64; 66) | 99 | BLOCK_EXPR@[64; 66) |
97 | L_CURLY@[64; 65) "{" | 100 | BLOCK@[64; 66) |
98 | R_CURLY@[65; 66) "}" | 101 | L_CURLY@[64; 65) "{" |
102 | R_CURLY@[65; 66) "}" | ||
99 | WHITESPACE@[66; 67) "\n" | 103 | WHITESPACE@[66; 67) "\n" |