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/0120_match_arms_inner_attribute.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/0120_match_arms_inner_attribute.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0120_match_arms_inner_attribute.txt | 127 |
1 files changed, 64 insertions, 63 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0120_match_arms_inner_attribute.txt b/crates/ra_syntax/test_data/parser/inline/ok/0120_match_arms_inner_attribute.txt index 17c296327..3bbeb62bc 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0120_match_arms_inner_attribute.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0120_match_arms_inner_attribute.txt | |||
@@ -8,67 +8,68 @@ SOURCE_FILE@[0; 139) | |||
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; 138) | 11 | BLOCK_EXPR@[9; 138) |
12 | L_CURLY@[9; 10) "{" | 12 | BLOCK@[9; 138) |
13 | WHITESPACE@[10; 15) "\n " | 13 | L_CURLY@[9; 10) "{" |
14 | MATCH_EXPR@[15; 136) | 14 | WHITESPACE@[10; 15) "\n " |
15 | MATCH_KW@[15; 20) "match" | 15 | MATCH_EXPR@[15; 136) |
16 | WHITESPACE@[20; 21) " " | 16 | MATCH_KW@[15; 20) "match" |
17 | TUPLE_EXPR@[21; 23) | 17 | WHITESPACE@[20; 21) " " |
18 | L_PAREN@[21; 22) "(" | 18 | TUPLE_EXPR@[21; 23) |
19 | R_PAREN@[22; 23) ")" | 19 | L_PAREN@[21; 22) "(" |
20 | WHITESPACE@[23; 24) " " | 20 | R_PAREN@[22; 23) ")" |
21 | MATCH_ARM_LIST@[24; 136) | 21 | WHITESPACE@[23; 24) " " |
22 | L_CURLY@[24; 25) "{" | 22 | MATCH_ARM_LIST@[24; 136) |
23 | WHITESPACE@[25; 34) "\n " | 23 | L_CURLY@[24; 25) "{" |
24 | ATTR@[34; 60) | 24 | WHITESPACE@[25; 34) "\n " |
25 | POUND@[34; 35) "#" | 25 | ATTR@[34; 60) |
26 | EXCL@[35; 36) "!" | 26 | POUND@[34; 35) "#" |
27 | TOKEN_TREE@[36; 60) | 27 | EXCL@[35; 36) "!" |
28 | L_BRACK@[36; 37) "[" | 28 | TOKEN_TREE@[36; 60) |
29 | IDENT@[37; 40) "doc" | 29 | L_BRACK@[36; 37) "[" |
30 | TOKEN_TREE@[40; 59) | 30 | IDENT@[37; 40) "doc" |
31 | L_PAREN@[40; 41) "(" | 31 | TOKEN_TREE@[40; 59) |
32 | STRING@[41; 58) "\"Inner attribute\"" | 32 | L_PAREN@[40; 41) "(" |
33 | R_PAREN@[58; 59) ")" | 33 | STRING@[41; 58) "\"Inner attribute\"" |
34 | R_BRACK@[59; 60) "]" | 34 | R_PAREN@[58; 59) ")" |
35 | WHITESPACE@[60; 69) "\n " | 35 | R_BRACK@[59; 60) "]" |
36 | ATTR@[69; 86) | 36 | WHITESPACE@[60; 69) "\n " |
37 | POUND@[69; 70) "#" | 37 | ATTR@[69; 86) |
38 | EXCL@[70; 71) "!" | 38 | POUND@[69; 70) "#" |
39 | TOKEN_TREE@[71; 86) | 39 | EXCL@[70; 71) "!" |
40 | L_BRACK@[71; 72) "[" | 40 | TOKEN_TREE@[71; 86) |
41 | IDENT@[72; 75) "doc" | 41 | L_BRACK@[71; 72) "[" |
42 | TOKEN_TREE@[75; 85) | 42 | IDENT@[72; 75) "doc" |
43 | L_PAREN@[75; 76) "(" | 43 | TOKEN_TREE@[75; 85) |
44 | STRING@[76; 84) "\"Can be\"" | 44 | L_PAREN@[75; 76) "(" |
45 | R_PAREN@[84; 85) ")" | 45 | STRING@[76; 84) "\"Can be\"" |
46 | R_BRACK@[85; 86) "]" | 46 | R_PAREN@[84; 85) ")" |
47 | WHITESPACE@[86; 95) "\n " | 47 | R_BRACK@[85; 86) "]" |
48 | ATTR@[95; 113) | 48 | WHITESPACE@[86; 95) "\n " |
49 | POUND@[95; 96) "#" | 49 | ATTR@[95; 113) |
50 | EXCL@[96; 97) "!" | 50 | POUND@[95; 96) "#" |
51 | TOKEN_TREE@[97; 113) | 51 | EXCL@[96; 97) "!" |
52 | L_BRACK@[97; 98) "[" | 52 | TOKEN_TREE@[97; 113) |
53 | IDENT@[98; 101) "doc" | 53 | L_BRACK@[97; 98) "[" |
54 | TOKEN_TREE@[101; 112) | 54 | IDENT@[98; 101) "doc" |
55 | L_PAREN@[101; 102) "(" | 55 | TOKEN_TREE@[101; 112) |
56 | STRING@[102; 111) "\"Stacked\"" | 56 | L_PAREN@[101; 102) "(" |
57 | R_PAREN@[111; 112) ")" | 57 | STRING@[102; 111) "\"Stacked\"" |
58 | R_BRACK@[112; 113) "]" | 58 | R_PAREN@[111; 112) ")" |
59 | WHITESPACE@[113; 122) "\n " | 59 | R_BRACK@[112; 113) "]" |
60 | MATCH_ARM@[122; 129) | 60 | WHITESPACE@[113; 122) "\n " |
61 | PLACEHOLDER_PAT@[122; 123) | 61 | MATCH_ARM@[122; 129) |
62 | UNDERSCORE@[122; 123) "_" | 62 | PLACEHOLDER_PAT@[122; 123) |
63 | WHITESPACE@[123; 124) " " | 63 | UNDERSCORE@[122; 123) "_" |
64 | FAT_ARROW@[124; 126) "=>" | 64 | WHITESPACE@[123; 124) " " |
65 | WHITESPACE@[126; 127) " " | 65 | FAT_ARROW@[124; 126) "=>" |
66 | TUPLE_EXPR@[127; 129) | 66 | WHITESPACE@[126; 127) " " |
67 | L_PAREN@[127; 128) "(" | 67 | TUPLE_EXPR@[127; 129) |
68 | R_PAREN@[128; 129) ")" | 68 | L_PAREN@[127; 128) "(" |
69 | COMMA@[129; 130) "," | 69 | R_PAREN@[128; 129) ")" |
70 | WHITESPACE@[130; 135) "\n " | 70 | COMMA@[129; 130) "," |
71 | R_CURLY@[135; 136) "}" | 71 | WHITESPACE@[130; 135) "\n " |
72 | WHITESPACE@[136; 137) "\n" | 72 | R_CURLY@[135; 136) "}" |
73 | R_CURLY@[137; 138) "}" | 73 | WHITESPACE@[136; 137) "\n" |
74 | R_CURLY@[137; 138) "}" | ||
74 | WHITESPACE@[138; 139) "\n" | 75 | WHITESPACE@[138; 139) "\n" |