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/0027_ref_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/0027_ref_pat.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0027_ref_pat.txt | 77 |
1 files changed, 39 insertions, 38 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0027_ref_pat.txt b/crates/ra_syntax/test_data/parser/inline/ok/0027_ref_pat.txt index a833b1b96..0f1a367f7 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0027_ref_pat.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0027_ref_pat.txt | |||
@@ -8,42 +8,43 @@ SOURCE_FILE@[0; 52) | |||
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; 51) | 11 | BLOCK_EXPR@[10; 51) |
12 | L_CURLY@[10; 11) "{" | 12 | BLOCK@[10; 51) |
13 | WHITESPACE@[11; 16) "\n " | 13 | L_CURLY@[10; 11) "{" |
14 | LET_STMT@[16; 28) | 14 | WHITESPACE@[11; 16) "\n " |
15 | LET_KW@[16; 19) "let" | 15 | LET_STMT@[16; 28) |
16 | WHITESPACE@[19; 20) " " | 16 | LET_KW@[16; 19) "let" |
17 | REF_PAT@[20; 22) | 17 | WHITESPACE@[19; 20) " " |
18 | AMP@[20; 21) "&" | 18 | REF_PAT@[20; 22) |
19 | BIND_PAT@[21; 22) | 19 | AMP@[20; 21) "&" |
20 | NAME@[21; 22) | 20 | BIND_PAT@[21; 22) |
21 | IDENT@[21; 22) "a" | 21 | NAME@[21; 22) |
22 | WHITESPACE@[22; 23) " " | 22 | IDENT@[21; 22) "a" |
23 | EQ@[23; 24) "=" | 23 | WHITESPACE@[22; 23) " " |
24 | WHITESPACE@[24; 25) " " | 24 | EQ@[23; 24) "=" |
25 | TUPLE_EXPR@[25; 27) | 25 | WHITESPACE@[24; 25) " " |
26 | L_PAREN@[25; 26) "(" | 26 | TUPLE_EXPR@[25; 27) |
27 | R_PAREN@[26; 27) ")" | 27 | L_PAREN@[25; 26) "(" |
28 | SEMI@[27; 28) ";" | 28 | R_PAREN@[26; 27) ")" |
29 | WHITESPACE@[28; 33) "\n " | 29 | SEMI@[27; 28) ";" |
30 | LET_STMT@[33; 49) | 30 | WHITESPACE@[28; 33) "\n " |
31 | LET_KW@[33; 36) "let" | 31 | LET_STMT@[33; 49) |
32 | WHITESPACE@[36; 37) " " | 32 | LET_KW@[33; 36) "let" |
33 | REF_PAT@[37; 43) | 33 | WHITESPACE@[36; 37) " " |
34 | AMP@[37; 38) "&" | 34 | REF_PAT@[37; 43) |
35 | MUT_KW@[38; 41) "mut" | 35 | AMP@[37; 38) "&" |
36 | WHITESPACE@[41; 42) " " | 36 | MUT_KW@[38; 41) "mut" |
37 | BIND_PAT@[42; 43) | 37 | WHITESPACE@[41; 42) " " |
38 | NAME@[42; 43) | 38 | BIND_PAT@[42; 43) |
39 | IDENT@[42; 43) "b" | 39 | NAME@[42; 43) |
40 | WHITESPACE@[43; 44) " " | 40 | IDENT@[42; 43) "b" |
41 | EQ@[44; 45) "=" | 41 | WHITESPACE@[43; 44) " " |
42 | WHITESPACE@[45; 46) " " | 42 | EQ@[44; 45) "=" |
43 | TUPLE_EXPR@[46; 48) | 43 | WHITESPACE@[45; 46) " " |
44 | L_PAREN@[46; 47) "(" | 44 | TUPLE_EXPR@[46; 48) |
45 | R_PAREN@[47; 48) ")" | 45 | L_PAREN@[46; 47) "(" |
46 | SEMI@[48; 49) ";" | 46 | R_PAREN@[47; 48) ")" |
47 | WHITESPACE@[49; 50) "\n" | 47 | SEMI@[48; 49) ";" |
48 | R_CURLY@[50; 51) "}" | 48 | WHITESPACE@[49; 50) "\n" |
49 | R_CURLY@[50; 51) "}" | ||
49 | WHITESPACE@[51; 52) "\n" | 50 | WHITESPACE@[51; 52) "\n" |