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/0019_unary_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/0019_unary_expr.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0019_unary_expr.txt | 67 |
1 files changed, 34 insertions, 33 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0019_unary_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0019_unary_expr.txt index 42032f56c..2d71efd86 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0019_unary_expr.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0019_unary_expr.txt | |||
@@ -8,37 +8,38 @@ SOURCE_FILE@[0; 44) | |||
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; 43) | 11 | BLOCK_EXPR@[9; 43) |
12 | L_CURLY@[9; 10) "{" | 12 | BLOCK@[9; 43) |
13 | WHITESPACE@[10; 15) "\n " | 13 | L_CURLY@[9; 10) "{" |
14 | EXPR_STMT@[15; 20) | 14 | WHITESPACE@[10; 15) "\n " |
15 | PREFIX_EXPR@[15; 19) | 15 | EXPR_STMT@[15; 20) |
16 | STAR@[15; 16) "*" | 16 | PREFIX_EXPR@[15; 19) |
17 | PREFIX_EXPR@[16; 19) | 17 | STAR@[15; 16) "*" |
18 | STAR@[16; 17) "*" | 18 | PREFIX_EXPR@[16; 19) |
19 | REF_EXPR@[17; 19) | 19 | STAR@[16; 17) "*" |
20 | AMP@[17; 18) "&" | 20 | REF_EXPR@[17; 19) |
21 | LITERAL@[18; 19) | 21 | AMP@[17; 18) "&" |
22 | INT_NUMBER@[18; 19) "1" | 22 | LITERAL@[18; 19) |
23 | SEMI@[19; 20) ";" | 23 | INT_NUMBER@[18; 19) "1" |
24 | WHITESPACE@[20; 25) "\n " | 24 | SEMI@[19; 20) ";" |
25 | EXPR_STMT@[25; 32) | 25 | WHITESPACE@[20; 25) "\n " |
26 | PREFIX_EXPR@[25; 31) | 26 | EXPR_STMT@[25; 32) |
27 | EXCL@[25; 26) "!" | 27 | PREFIX_EXPR@[25; 31) |
28 | PREFIX_EXPR@[26; 31) | 28 | EXCL@[25; 26) "!" |
29 | EXCL@[26; 27) "!" | 29 | PREFIX_EXPR@[26; 31) |
30 | LITERAL@[27; 31) | 30 | EXCL@[26; 27) "!" |
31 | TRUE_KW@[27; 31) "true" | 31 | LITERAL@[27; 31) |
32 | SEMI@[31; 32) ";" | 32 | TRUE_KW@[27; 31) "true" |
33 | WHITESPACE@[32; 37) "\n " | 33 | SEMI@[31; 32) ";" |
34 | EXPR_STMT@[37; 41) | 34 | WHITESPACE@[32; 37) "\n " |
35 | PREFIX_EXPR@[37; 40) | 35 | EXPR_STMT@[37; 41) |
36 | MINUS@[37; 38) "-" | 36 | PREFIX_EXPR@[37; 40) |
37 | PREFIX_EXPR@[38; 40) | 37 | MINUS@[37; 38) "-" |
38 | MINUS@[38; 39) "-" | 38 | PREFIX_EXPR@[38; 40) |
39 | LITERAL@[39; 40) | 39 | MINUS@[38; 39) "-" |
40 | INT_NUMBER@[39; 40) "1" | 40 | LITERAL@[39; 40) |
41 | SEMI@[40; 41) ";" | 41 | INT_NUMBER@[39; 40) "1" |
42 | WHITESPACE@[41; 42) "\n" | 42 | SEMI@[40; 41) ";" |
43 | R_CURLY@[42; 43) "}" | 43 | WHITESPACE@[41; 42) "\n" |
44 | R_CURLY@[42; 43) "}" | ||
44 | WHITESPACE@[43; 44) "\n" | 45 | WHITESPACE@[43; 44) "\n" |