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/0102_record_field_pat_list.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/0102_record_field_pat_list.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0102_record_field_pat_list.txt | 239 |
1 files changed, 120 insertions, 119 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0102_record_field_pat_list.txt b/crates/ra_syntax/test_data/parser/inline/ok/0102_record_field_pat_list.txt index 22db72c12..d8e04bd90 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0102_record_field_pat_list.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0102_record_field_pat_list.txt | |||
@@ -8,123 +8,124 @@ SOURCE_FILE@[0; 119) | |||
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; 118) | 11 | BLOCK_EXPR@[9; 118) |
12 | L_CURLY@[9; 10) "{" | 12 | BLOCK@[9; 118) |
13 | WHITESPACE@[10; 15) "\n " | 13 | L_CURLY@[9; 10) "{" |
14 | LET_STMT@[15; 29) | 14 | WHITESPACE@[10; 15) "\n " |
15 | LET_KW@[15; 18) "let" | 15 | LET_STMT@[15; 29) |
16 | WHITESPACE@[18; 19) " " | 16 | LET_KW@[15; 18) "let" |
17 | RECORD_PAT@[19; 23) | 17 | WHITESPACE@[18; 19) " " |
18 | PATH@[19; 20) | 18 | RECORD_PAT@[19; 23) |
19 | PATH_SEGMENT@[19; 20) | 19 | PATH@[19; 20) |
20 | NAME_REF@[19; 20) | 20 | PATH_SEGMENT@[19; 20) |
21 | IDENT@[19; 20) "S" | 21 | NAME_REF@[19; 20) |
22 | WHITESPACE@[20; 21) " " | 22 | IDENT@[19; 20) "S" |
23 | RECORD_FIELD_PAT_LIST@[21; 23) | 23 | WHITESPACE@[20; 21) " " |
24 | L_CURLY@[21; 22) "{" | 24 | RECORD_FIELD_PAT_LIST@[21; 23) |
25 | R_CURLY@[22; 23) "}" | 25 | L_CURLY@[21; 22) "{" |
26 | WHITESPACE@[23; 24) " " | 26 | R_CURLY@[22; 23) "}" |
27 | EQ@[24; 25) "=" | 27 | WHITESPACE@[23; 24) " " |
28 | WHITESPACE@[25; 26) " " | 28 | EQ@[24; 25) "=" |
29 | TUPLE_EXPR@[26; 28) | 29 | WHITESPACE@[25; 26) " " |
30 | L_PAREN@[26; 27) "(" | 30 | TUPLE_EXPR@[26; 28) |
31 | R_PAREN@[27; 28) ")" | 31 | L_PAREN@[26; 27) "(" |
32 | SEMI@[28; 29) ";" | 32 | R_PAREN@[27; 28) ")" |
33 | WHITESPACE@[29; 34) "\n " | 33 | SEMI@[28; 29) ";" |
34 | LET_STMT@[34; 62) | 34 | WHITESPACE@[29; 34) "\n " |
35 | LET_KW@[34; 37) "let" | 35 | LET_STMT@[34; 62) |
36 | WHITESPACE@[37; 38) " " | 36 | LET_KW@[34; 37) "let" |
37 | RECORD_PAT@[38; 56) | 37 | WHITESPACE@[37; 38) " " |
38 | PATH@[38; 39) | 38 | RECORD_PAT@[38; 56) |
39 | PATH_SEGMENT@[38; 39) | 39 | PATH@[38; 39) |
40 | NAME_REF@[38; 39) | 40 | PATH_SEGMENT@[38; 39) |
41 | IDENT@[38; 39) "S" | 41 | NAME_REF@[38; 39) |
42 | WHITESPACE@[39; 40) " " | 42 | IDENT@[38; 39) "S" |
43 | RECORD_FIELD_PAT_LIST@[40; 56) | 43 | WHITESPACE@[39; 40) " " |
44 | L_CURLY@[40; 41) "{" | 44 | RECORD_FIELD_PAT_LIST@[40; 56) |
45 | WHITESPACE@[41; 42) " " | 45 | L_CURLY@[40; 41) "{" |
46 | BIND_PAT@[42; 43) | 46 | WHITESPACE@[41; 42) " " |
47 | NAME@[42; 43) | 47 | BIND_PAT@[42; 43) |
48 | IDENT@[42; 43) "f" | 48 | NAME@[42; 43) |
49 | COMMA@[43; 44) "," | 49 | IDENT@[42; 43) "f" |
50 | WHITESPACE@[44; 45) " " | 50 | COMMA@[43; 44) "," |
51 | BIND_PAT@[45; 54) | 51 | WHITESPACE@[44; 45) " " |
52 | REF_KW@[45; 48) "ref" | 52 | BIND_PAT@[45; 54) |
53 | WHITESPACE@[48; 49) " " | 53 | REF_KW@[45; 48) "ref" |
54 | MUT_KW@[49; 52) "mut" | 54 | WHITESPACE@[48; 49) " " |
55 | WHITESPACE@[52; 53) " " | 55 | MUT_KW@[49; 52) "mut" |
56 | NAME@[53; 54) | 56 | WHITESPACE@[52; 53) " " |
57 | IDENT@[53; 54) "g" | 57 | NAME@[53; 54) |
58 | WHITESPACE@[54; 55) " " | 58 | IDENT@[53; 54) "g" |
59 | R_CURLY@[55; 56) "}" | 59 | WHITESPACE@[54; 55) " " |
60 | WHITESPACE@[56; 57) " " | 60 | R_CURLY@[55; 56) "}" |
61 | EQ@[57; 58) "=" | 61 | WHITESPACE@[56; 57) " " |
62 | WHITESPACE@[58; 59) " " | 62 | EQ@[57; 58) "=" |
63 | TUPLE_EXPR@[59; 61) | 63 | WHITESPACE@[58; 59) " " |
64 | L_PAREN@[59; 60) "(" | 64 | TUPLE_EXPR@[59; 61) |
65 | R_PAREN@[60; 61) ")" | 65 | L_PAREN@[59; 60) "(" |
66 | SEMI@[61; 62) ";" | 66 | R_PAREN@[60; 61) ")" |
67 | WHITESPACE@[62; 67) "\n " | 67 | SEMI@[61; 62) ";" |
68 | LET_STMT@[67; 90) | 68 | WHITESPACE@[62; 67) "\n " |
69 | LET_KW@[67; 70) "let" | 69 | LET_STMT@[67; 90) |
70 | WHITESPACE@[70; 71) " " | 70 | LET_KW@[67; 70) "let" |
71 | RECORD_PAT@[71; 84) | 71 | WHITESPACE@[70; 71) " " |
72 | PATH@[71; 72) | 72 | RECORD_PAT@[71; 84) |
73 | PATH_SEGMENT@[71; 72) | 73 | PATH@[71; 72) |
74 | NAME_REF@[71; 72) | 74 | PATH_SEGMENT@[71; 72) |
75 | IDENT@[71; 72) "S" | 75 | NAME_REF@[71; 72) |
76 | WHITESPACE@[72; 73) " " | 76 | IDENT@[71; 72) "S" |
77 | RECORD_FIELD_PAT_LIST@[73; 84) | 77 | WHITESPACE@[72; 73) " " |
78 | L_CURLY@[73; 74) "{" | 78 | RECORD_FIELD_PAT_LIST@[73; 84) |
79 | WHITESPACE@[74; 75) " " | 79 | L_CURLY@[73; 74) "{" |
80 | RECORD_FIELD_PAT@[75; 79) | 80 | WHITESPACE@[74; 75) " " |
81 | NAME@[75; 76) | 81 | RECORD_FIELD_PAT@[75; 79) |
82 | IDENT@[75; 76) "h" | 82 | NAME@[75; 76) |
83 | COLON@[76; 77) ":" | 83 | IDENT@[75; 76) "h" |
84 | WHITESPACE@[77; 78) " " | 84 | COLON@[76; 77) ":" |
85 | PLACEHOLDER_PAT@[78; 79) | 85 | WHITESPACE@[77; 78) " " |
86 | UNDERSCORE@[78; 79) "_" | 86 | PLACEHOLDER_PAT@[78; 79) |
87 | COMMA@[79; 80) "," | 87 | UNDERSCORE@[78; 79) "_" |
88 | WHITESPACE@[80; 81) " " | 88 | COMMA@[79; 80) "," |
89 | DOTDOT@[81; 83) ".." | 89 | WHITESPACE@[80; 81) " " |
90 | R_CURLY@[83; 84) "}" | 90 | DOTDOT@[81; 83) ".." |
91 | WHITESPACE@[84; 85) " " | 91 | R_CURLY@[83; 84) "}" |
92 | EQ@[85; 86) "=" | 92 | WHITESPACE@[84; 85) " " |
93 | WHITESPACE@[86; 87) " " | 93 | EQ@[85; 86) "=" |
94 | TUPLE_EXPR@[87; 89) | 94 | WHITESPACE@[86; 87) " " |
95 | L_PAREN@[87; 88) "(" | 95 | TUPLE_EXPR@[87; 89) |
96 | R_PAREN@[88; 89) ")" | 96 | L_PAREN@[87; 88) "(" |
97 | SEMI@[89; 90) ";" | 97 | R_PAREN@[88; 89) ")" |
98 | WHITESPACE@[90; 95) "\n " | 98 | SEMI@[89; 90) ";" |
99 | LET_STMT@[95; 116) | 99 | WHITESPACE@[90; 95) "\n " |
100 | LET_KW@[95; 98) "let" | 100 | LET_STMT@[95; 116) |
101 | WHITESPACE@[98; 99) " " | 101 | LET_KW@[95; 98) "let" |
102 | RECORD_PAT@[99; 110) | 102 | WHITESPACE@[98; 99) " " |
103 | PATH@[99; 100) | 103 | RECORD_PAT@[99; 110) |
104 | PATH_SEGMENT@[99; 100) | 104 | PATH@[99; 100) |
105 | NAME_REF@[99; 100) | 105 | PATH_SEGMENT@[99; 100) |
106 | IDENT@[99; 100) "S" | 106 | NAME_REF@[99; 100) |
107 | WHITESPACE@[100; 101) " " | 107 | IDENT@[99; 100) "S" |
108 | RECORD_FIELD_PAT_LIST@[101; 110) | 108 | WHITESPACE@[100; 101) " " |
109 | L_CURLY@[101; 102) "{" | 109 | RECORD_FIELD_PAT_LIST@[101; 110) |
110 | WHITESPACE@[102; 103) " " | 110 | L_CURLY@[101; 102) "{" |
111 | RECORD_FIELD_PAT@[103; 107) | 111 | WHITESPACE@[102; 103) " " |
112 | NAME@[103; 104) | 112 | RECORD_FIELD_PAT@[103; 107) |
113 | IDENT@[103; 104) "h" | 113 | NAME@[103; 104) |
114 | COLON@[104; 105) ":" | 114 | IDENT@[103; 104) "h" |
115 | WHITESPACE@[105; 106) " " | 115 | COLON@[104; 105) ":" |
116 | PLACEHOLDER_PAT@[106; 107) | 116 | WHITESPACE@[105; 106) " " |
117 | UNDERSCORE@[106; 107) "_" | 117 | PLACEHOLDER_PAT@[106; 107) |
118 | COMMA@[107; 108) "," | 118 | UNDERSCORE@[106; 107) "_" |
119 | WHITESPACE@[108; 109) " " | 119 | COMMA@[107; 108) "," |
120 | R_CURLY@[109; 110) "}" | 120 | WHITESPACE@[108; 109) " " |
121 | WHITESPACE@[110; 111) " " | 121 | R_CURLY@[109; 110) "}" |
122 | EQ@[111; 112) "=" | 122 | WHITESPACE@[110; 111) " " |
123 | WHITESPACE@[112; 113) " " | 123 | EQ@[111; 112) "=" |
124 | TUPLE_EXPR@[113; 115) | 124 | WHITESPACE@[112; 113) " " |
125 | L_PAREN@[113; 114) "(" | 125 | TUPLE_EXPR@[113; 115) |
126 | R_PAREN@[114; 115) ")" | 126 | L_PAREN@[113; 114) "(" |
127 | SEMI@[115; 116) ";" | 127 | R_PAREN@[114; 115) ")" |
128 | WHITESPACE@[116; 117) "\n" | 128 | SEMI@[115; 116) ";" |
129 | R_CURLY@[117; 118) "}" | 129 | WHITESPACE@[116; 117) "\n" |
130 | R_CURLY@[117; 118) "}" | ||
130 | WHITESPACE@[118; 119) "\n" | 131 | WHITESPACE@[118; 119) "\n" |