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/0058_range_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/0058_range_pat.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0058_range_pat.txt | 143 |
1 files changed, 72 insertions, 71 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0058_range_pat.txt b/crates/ra_syntax/test_data/parser/inline/ok/0058_range_pat.txt index 1b7e9b905..3d659ce10 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0058_range_pat.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0058_range_pat.txt | |||
@@ -8,75 +8,76 @@ SOURCE_FILE@[0; 112) | |||
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; 111) | 11 | BLOCK_EXPR@[10; 111) |
12 | L_CURLY@[10; 11) "{" | 12 | BLOCK@[10; 111) |
13 | WHITESPACE@[11; 16) "\n " | 13 | L_CURLY@[10; 11) "{" |
14 | MATCH_EXPR@[16; 109) | 14 | WHITESPACE@[11; 16) "\n " |
15 | MATCH_KW@[16; 21) "match" | 15 | MATCH_EXPR@[16; 109) |
16 | WHITESPACE@[21; 22) " " | 16 | MATCH_KW@[16; 21) "match" |
17 | LITERAL@[22; 24) | 17 | WHITESPACE@[21; 22) " " |
18 | INT_NUMBER@[22; 24) "92" | 18 | LITERAL@[22; 24) |
19 | WHITESPACE@[24; 25) " " | 19 | INT_NUMBER@[22; 24) "92" |
20 | MATCH_ARM_LIST@[25; 109) | 20 | WHITESPACE@[24; 25) " " |
21 | L_CURLY@[25; 26) "{" | 21 | MATCH_ARM_LIST@[25; 109) |
22 | WHITESPACE@[26; 35) "\n " | 22 | L_CURLY@[25; 26) "{" |
23 | MATCH_ARM@[35; 50) | 23 | WHITESPACE@[26; 35) "\n " |
24 | RANGE_PAT@[35; 44) | 24 | MATCH_ARM@[35; 50) |
25 | LITERAL_PAT@[35; 36) | 25 | RANGE_PAT@[35; 44) |
26 | LITERAL@[35; 36) | 26 | LITERAL_PAT@[35; 36) |
27 | INT_NUMBER@[35; 36) "0" | 27 | LITERAL@[35; 36) |
28 | WHITESPACE@[36; 37) " " | 28 | INT_NUMBER@[35; 36) "0" |
29 | DOTDOTDOT@[37; 40) "..." | 29 | WHITESPACE@[36; 37) " " |
30 | WHITESPACE@[40; 41) " " | 30 | DOTDOTDOT@[37; 40) "..." |
31 | LITERAL_PAT@[41; 44) | 31 | WHITESPACE@[40; 41) " " |
32 | LITERAL@[41; 44) | 32 | LITERAL_PAT@[41; 44) |
33 | INT_NUMBER@[41; 44) "100" | 33 | LITERAL@[41; 44) |
34 | WHITESPACE@[44; 45) " " | 34 | INT_NUMBER@[41; 44) "100" |
35 | FAT_ARROW@[45; 47) "=>" | 35 | WHITESPACE@[44; 45) " " |
36 | WHITESPACE@[47; 48) " " | 36 | FAT_ARROW@[45; 47) "=>" |
37 | TUPLE_EXPR@[48; 50) | 37 | WHITESPACE@[47; 48) " " |
38 | L_PAREN@[48; 49) "(" | 38 | TUPLE_EXPR@[48; 50) |
39 | R_PAREN@[49; 50) ")" | 39 | L_PAREN@[48; 49) "(" |
40 | COMMA@[50; 51) "," | 40 | R_PAREN@[49; 50) ")" |
41 | WHITESPACE@[51; 60) "\n " | 41 | COMMA@[50; 51) "," |
42 | MATCH_ARM@[60; 77) | 42 | WHITESPACE@[51; 60) "\n " |
43 | RANGE_PAT@[60; 71) | 43 | MATCH_ARM@[60; 77) |
44 | LITERAL_PAT@[60; 63) | 44 | RANGE_PAT@[60; 71) |
45 | LITERAL@[60; 63) | 45 | LITERAL_PAT@[60; 63) |
46 | INT_NUMBER@[60; 63) "101" | 46 | LITERAL@[60; 63) |
47 | WHITESPACE@[63; 64) " " | 47 | INT_NUMBER@[60; 63) "101" |
48 | DOTDOTEQ@[64; 67) "..=" | 48 | WHITESPACE@[63; 64) " " |
49 | WHITESPACE@[67; 68) " " | 49 | DOTDOTEQ@[64; 67) "..=" |
50 | LITERAL_PAT@[68; 71) | 50 | WHITESPACE@[67; 68) " " |
51 | LITERAL@[68; 71) | 51 | LITERAL_PAT@[68; 71) |
52 | INT_NUMBER@[68; 71) "200" | 52 | LITERAL@[68; 71) |
53 | WHITESPACE@[71; 72) " " | 53 | INT_NUMBER@[68; 71) "200" |
54 | FAT_ARROW@[72; 74) "=>" | 54 | WHITESPACE@[71; 72) " " |
55 | WHITESPACE@[74; 75) " " | 55 | FAT_ARROW@[72; 74) "=>" |
56 | TUPLE_EXPR@[75; 77) | 56 | WHITESPACE@[74; 75) " " |
57 | L_PAREN@[75; 76) "(" | 57 | TUPLE_EXPR@[75; 77) |
58 | R_PAREN@[76; 77) ")" | 58 | L_PAREN@[75; 76) "(" |
59 | COMMA@[77; 78) "," | 59 | R_PAREN@[76; 77) ")" |
60 | WHITESPACE@[78; 87) "\n " | 60 | COMMA@[77; 78) "," |
61 | MATCH_ARM@[87; 102) | 61 | WHITESPACE@[78; 87) "\n " |
62 | RANGE_PAT@[87; 97) | 62 | MATCH_ARM@[87; 102) |
63 | LITERAL_PAT@[87; 90) | 63 | RANGE_PAT@[87; 97) |
64 | LITERAL@[87; 90) | 64 | LITERAL_PAT@[87; 90) |
65 | INT_NUMBER@[87; 90) "200" | 65 | LITERAL@[87; 90) |
66 | WHITESPACE@[90; 91) " " | 66 | INT_NUMBER@[87; 90) "200" |
67 | DOTDOT@[91; 93) ".." | 67 | WHITESPACE@[90; 91) " " |
68 | WHITESPACE@[93; 94) " " | 68 | DOTDOT@[91; 93) ".." |
69 | LITERAL_PAT@[94; 97) | 69 | WHITESPACE@[93; 94) " " |
70 | LITERAL@[94; 97) | 70 | LITERAL_PAT@[94; 97) |
71 | INT_NUMBER@[94; 97) "301" | 71 | LITERAL@[94; 97) |
72 | FAT_ARROW@[97; 99) "=>" | 72 | INT_NUMBER@[94; 97) "301" |
73 | WHITESPACE@[99; 100) " " | 73 | FAT_ARROW@[97; 99) "=>" |
74 | TUPLE_EXPR@[100; 102) | 74 | WHITESPACE@[99; 100) " " |
75 | L_PAREN@[100; 101) "(" | 75 | TUPLE_EXPR@[100; 102) |
76 | R_PAREN@[101; 102) ")" | 76 | L_PAREN@[100; 101) "(" |
77 | COMMA@[102; 103) "," | 77 | R_PAREN@[101; 102) ")" |
78 | WHITESPACE@[103; 108) "\n " | 78 | COMMA@[102; 103) "," |
79 | R_CURLY@[108; 109) "}" | 79 | WHITESPACE@[103; 108) "\n " |
80 | WHITESPACE@[109; 110) "\n" | 80 | R_CURLY@[108; 109) "}" |
81 | R_CURLY@[110; 111) "}" | 81 | WHITESPACE@[109; 110) "\n" |
82 | R_CURLY@[110; 111) "}" | ||
82 | WHITESPACE@[111; 112) "\n" | 83 | WHITESPACE@[111; 112) "\n" |