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/0125_record_literal_field_with_attr.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/0125_record_literal_field_with_attr.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0125_record_literal_field_with_attr.txt | 69 |
1 files changed, 35 insertions, 34 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0125_record_literal_field_with_attr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0125_record_literal_field_with_attr.txt index 8fdf3756f..37cc438d9 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0125_record_literal_field_with_attr.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0125_record_literal_field_with_attr.txt | |||
@@ -8,38 +8,39 @@ SOURCE_FILE@[0; 46) | |||
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; 45) | 11 | BLOCK_EXPR@[10; 45) |
12 | L_CURLY@[10; 11) "{" | 12 | BLOCK@[10; 45) |
13 | WHITESPACE@[11; 16) "\n " | 13 | L_CURLY@[10; 11) "{" |
14 | RECORD_LIT@[16; 43) | 14 | WHITESPACE@[11; 16) "\n " |
15 | PATH@[16; 17) | 15 | RECORD_LIT@[16; 43) |
16 | PATH_SEGMENT@[16; 17) | 16 | PATH@[16; 17) |
17 | NAME_REF@[16; 17) | 17 | PATH_SEGMENT@[16; 17) |
18 | IDENT@[16; 17) "S" | 18 | NAME_REF@[16; 17) |
19 | WHITESPACE@[17; 18) " " | 19 | IDENT@[16; 17) "S" |
20 | RECORD_FIELD_LIST@[18; 43) | 20 | WHITESPACE@[17; 18) " " |
21 | L_CURLY@[18; 19) "{" | 21 | RECORD_FIELD_LIST@[18; 43) |
22 | WHITESPACE@[19; 20) " " | 22 | L_CURLY@[18; 19) "{" |
23 | RECORD_FIELD@[20; 41) | 23 | WHITESPACE@[19; 20) " " |
24 | ATTR@[20; 32) | 24 | RECORD_FIELD@[20; 41) |
25 | POUND@[20; 21) "#" | 25 | ATTR@[20; 32) |
26 | TOKEN_TREE@[21; 32) | 26 | POUND@[20; 21) "#" |
27 | L_BRACK@[21; 22) "[" | 27 | TOKEN_TREE@[21; 32) |
28 | IDENT@[22; 25) "cfg" | 28 | L_BRACK@[21; 22) "[" |
29 | TOKEN_TREE@[25; 31) | 29 | IDENT@[22; 25) "cfg" |
30 | L_PAREN@[25; 26) "(" | 30 | TOKEN_TREE@[25; 31) |
31 | IDENT@[26; 30) "test" | 31 | L_PAREN@[25; 26) "(" |
32 | R_PAREN@[30; 31) ")" | 32 | IDENT@[26; 30) "test" |
33 | R_BRACK@[31; 32) "]" | 33 | R_PAREN@[30; 31) ")" |
34 | WHITESPACE@[32; 33) " " | 34 | R_BRACK@[31; 32) "]" |
35 | NAME_REF@[33; 38) | 35 | WHITESPACE@[32; 33) " " |
36 | IDENT@[33; 38) "field" | 36 | NAME_REF@[33; 38) |
37 | COLON@[38; 39) ":" | 37 | IDENT@[33; 38) "field" |
38 | WHITESPACE@[39; 40) " " | 38 | COLON@[38; 39) ":" |
39 | LITERAL@[40; 41) | 39 | WHITESPACE@[39; 40) " " |
40 | INT_NUMBER@[40; 41) "1" | 40 | LITERAL@[40; 41) |
41 | WHITESPACE@[41; 42) " " | 41 | INT_NUMBER@[40; 41) "1" |
42 | R_CURLY@[42; 43) "}" | 42 | WHITESPACE@[41; 42) " " |
43 | WHITESPACE@[43; 44) "\n" | 43 | R_CURLY@[42; 43) "}" |
44 | R_CURLY@[44; 45) "}" | 44 | WHITESPACE@[43; 44) "\n" |
45 | R_CURLY@[44; 45) "}" | ||
45 | WHITESPACE@[45; 46) "\n" | 46 | WHITESPACE@[45; 46) "\n" |