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/0024_slice_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/0024_slice_pat.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0024_slice_pat.txt | 59 |
1 files changed, 30 insertions, 29 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0024_slice_pat.txt b/crates/ra_syntax/test_data/parser/inline/ok/0024_slice_pat.txt index 40ddbfbf6..c1d669e54 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0024_slice_pat.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0024_slice_pat.txt | |||
@@ -8,33 +8,34 @@ SOURCE_FILE@[0; 39) | |||
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; 38) | 11 | BLOCK_EXPR@[10; 38) |
12 | L_CURLY@[10; 11) "{" | 12 | BLOCK@[10; 38) |
13 | WHITESPACE@[11; 16) "\n " | 13 | L_CURLY@[10; 11) "{" |
14 | LET_STMT@[16; 36) | 14 | WHITESPACE@[11; 16) "\n " |
15 | LET_KW@[16; 19) "let" | 15 | LET_STMT@[16; 36) |
16 | WHITESPACE@[19; 20) " " | 16 | LET_KW@[16; 19) "let" |
17 | SLICE_PAT@[20; 30) | 17 | WHITESPACE@[19; 20) " " |
18 | L_BRACK@[20; 21) "[" | 18 | SLICE_PAT@[20; 30) |
19 | BIND_PAT@[21; 22) | 19 | L_BRACK@[20; 21) "[" |
20 | NAME@[21; 22) | 20 | BIND_PAT@[21; 22) |
21 | IDENT@[21; 22) "a" | 21 | NAME@[21; 22) |
22 | COMMA@[22; 23) "," | 22 | IDENT@[21; 22) "a" |
23 | WHITESPACE@[23; 24) " " | 23 | COMMA@[22; 23) "," |
24 | BIND_PAT@[24; 25) | 24 | WHITESPACE@[23; 24) " " |
25 | NAME@[24; 25) | 25 | BIND_PAT@[24; 25) |
26 | IDENT@[24; 25) "b" | 26 | NAME@[24; 25) |
27 | COMMA@[25; 26) "," | 27 | IDENT@[24; 25) "b" |
28 | WHITESPACE@[26; 27) " " | 28 | COMMA@[25; 26) "," |
29 | DOTDOT@[27; 29) ".." | 29 | WHITESPACE@[26; 27) " " |
30 | R_BRACK@[29; 30) "]" | 30 | DOTDOT@[27; 29) ".." |
31 | WHITESPACE@[30; 31) " " | 31 | R_BRACK@[29; 30) "]" |
32 | EQ@[31; 32) "=" | 32 | WHITESPACE@[30; 31) " " |
33 | WHITESPACE@[32; 33) " " | 33 | EQ@[31; 32) "=" |
34 | ARRAY_EXPR@[33; 35) | 34 | WHITESPACE@[32; 33) " " |
35 | L_BRACK@[33; 34) "[" | 35 | ARRAY_EXPR@[33; 35) |
36 | R_BRACK@[34; 35) "]" | 36 | L_BRACK@[33; 34) "[" |
37 | SEMI@[35; 36) ";" | 37 | R_BRACK@[34; 35) "]" |
38 | WHITESPACE@[36; 37) "\n" | 38 | SEMI@[35; 36) ";" |
39 | R_CURLY@[37; 38) "}" | 39 | WHITESPACE@[36; 37) "\n" |
40 | R_CURLY@[37; 38) "}" | ||
40 | WHITESPACE@[38; 39) "\n" | 41 | WHITESPACE@[38; 39) "\n" |