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/0095_placeholder_pat.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/0095_placeholder_pat.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0095_placeholder_pat.txt | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0095_placeholder_pat.txt b/crates/ra_syntax/test_data/parser/inline/ok/0095_placeholder_pat.txt index f11bc1fc8..fe86894a9 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0095_placeholder_pat.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0095_placeholder_pat.txt | |||
@@ -8,21 +8,22 @@ SOURCE_FILE@[0; 26) | |||
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; 25) | 11 | BLOCK_EXPR@[10; 25) |
12 | L_CURLY@[10; 11) "{" | 12 | BLOCK@[10; 25) |
13 | WHITESPACE@[11; 12) " " | 13 | L_CURLY@[10; 11) "{" |
14 | LET_STMT@[12; 23) | 14 | WHITESPACE@[11; 12) " " |
15 | LET_KW@[12; 15) "let" | 15 | LET_STMT@[12; 23) |
16 | WHITESPACE@[15; 16) " " | 16 | LET_KW@[12; 15) "let" |
17 | PLACEHOLDER_PAT@[16; 17) | 17 | WHITESPACE@[15; 16) " " |
18 | UNDERSCORE@[16; 17) "_" | 18 | PLACEHOLDER_PAT@[16; 17) |
19 | WHITESPACE@[17; 18) " " | 19 | UNDERSCORE@[16; 17) "_" |
20 | EQ@[18; 19) "=" | 20 | WHITESPACE@[17; 18) " " |
21 | WHITESPACE@[19; 20) " " | 21 | EQ@[18; 19) "=" |
22 | TUPLE_EXPR@[20; 22) | 22 | WHITESPACE@[19; 20) " " |
23 | L_PAREN@[20; 21) "(" | 23 | TUPLE_EXPR@[20; 22) |
24 | R_PAREN@[21; 22) ")" | 24 | L_PAREN@[20; 21) "(" |
25 | SEMI@[22; 23) ";" | 25 | R_PAREN@[21; 22) ")" |
26 | WHITESPACE@[23; 24) " " | 26 | SEMI@[22; 23) ";" |
27 | R_CURLY@[24; 25) "}" | 27 | WHITESPACE@[23; 24) " " |
28 | R_CURLY@[24; 25) "}" | ||
28 | WHITESPACE@[25; 26) "\n" | 29 | WHITESPACE@[25; 26) "\n" |