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