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/0108_tuple_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/0108_tuple_expr.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0108_tuple_expr.txt | 55 |
1 files changed, 28 insertions, 27 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0108_tuple_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0108_tuple_expr.txt index 32be7a849..6f685ca8d 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0108_tuple_expr.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0108_tuple_expr.txt | |||
@@ -8,31 +8,32 @@ SOURCE_FILE@[0; 40) | |||
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; 39) | 11 | BLOCK_EXPR@[9; 39) |
12 | L_CURLY@[9; 10) "{" | 12 | BLOCK@[9; 39) |
13 | WHITESPACE@[10; 15) "\n " | 13 | L_CURLY@[9; 10) "{" |
14 | EXPR_STMT@[15; 18) | 14 | WHITESPACE@[10; 15) "\n " |
15 | TUPLE_EXPR@[15; 17) | 15 | EXPR_STMT@[15; 18) |
16 | L_PAREN@[15; 16) "(" | 16 | TUPLE_EXPR@[15; 17) |
17 | R_PAREN@[16; 17) ")" | 17 | L_PAREN@[15; 16) "(" |
18 | SEMI@[17; 18) ";" | 18 | R_PAREN@[16; 17) ")" |
19 | WHITESPACE@[18; 23) "\n " | 19 | SEMI@[17; 18) ";" |
20 | EXPR_STMT@[23; 27) | 20 | WHITESPACE@[18; 23) "\n " |
21 | PAREN_EXPR@[23; 26) | 21 | EXPR_STMT@[23; 27) |
22 | L_PAREN@[23; 24) "(" | 22 | PAREN_EXPR@[23; 26) |
23 | LITERAL@[24; 25) | 23 | L_PAREN@[23; 24) "(" |
24 | INT_NUMBER@[24; 25) "1" | 24 | LITERAL@[24; 25) |
25 | R_PAREN@[25; 26) ")" | 25 | INT_NUMBER@[24; 25) "1" |
26 | SEMI@[26; 27) ";" | 26 | R_PAREN@[25; 26) ")" |
27 | WHITESPACE@[27; 32) "\n " | 27 | SEMI@[26; 27) ";" |
28 | EXPR_STMT@[32; 37) | 28 | WHITESPACE@[27; 32) "\n " |
29 | TUPLE_EXPR@[32; 36) | 29 | EXPR_STMT@[32; 37) |
30 | L_PAREN@[32; 33) "(" | 30 | TUPLE_EXPR@[32; 36) |
31 | LITERAL@[33; 34) | 31 | L_PAREN@[32; 33) "(" |
32 | INT_NUMBER@[33; 34) "1" | 32 | LITERAL@[33; 34) |
33 | COMMA@[34; 35) "," | 33 | INT_NUMBER@[33; 34) "1" |
34 | R_PAREN@[35; 36) ")" | 34 | COMMA@[34; 35) "," |
35 | SEMI@[36; 37) ";" | 35 | R_PAREN@[35; 36) ")" |
36 | WHITESPACE@[37; 38) "\n" | 36 | SEMI@[36; 37) ";" |
37 | R_CURLY@[38; 39) "}" | 37 | WHITESPACE@[37; 38) "\n" |
38 | R_CURLY@[38; 39) "}" | ||
38 | WHITESPACE@[39; 40) "\n" | 39 | WHITESPACE@[39; 40) "\n" |