diff options
author | Aleksey Kladov <[email protected]> | 2018-09-08 08:35:05 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-09-08 08:35:05 +0100 |
commit | febbc9acdd0166530499b9b129ee703fcbfbe978 (patch) | |
tree | f49923418511ad87d6ab28e286a0c7261e14ccbe /crates/libsyntax2/tests/data/parser/ok | |
parent | a0a347eac941e93165c5b2728010bfbcb6ae9549 (diff) |
Don't get stuck in tuple exprs
Diffstat (limited to 'crates/libsyntax2/tests/data/parser/ok')
-rw-r--r-- | crates/libsyntax2/tests/data/parser/ok/0034_macro_2.0.txt | 259 |
1 files changed, 163 insertions, 96 deletions
diff --git a/crates/libsyntax2/tests/data/parser/ok/0034_macro_2.0.txt b/crates/libsyntax2/tests/data/parser/ok/0034_macro_2.0.txt index 1a8ca761d..74af9d71b 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0034_macro_2.0.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0034_macro_2.0.txt | |||
@@ -79,119 +79,186 @@ ROOT@[0; 350) | |||
79 | IDENT@[134; 139) "macro" | 79 | IDENT@[134; 139) "macro" |
80 | err: `expected SEMI` | 80 | err: `expected SEMI` |
81 | WHITESPACE@[139; 140) | 81 | WHITESPACE@[139; 140) |
82 | EXPR_STMT@[140; 203) | 82 | EXPR_STMT@[140; 154) |
83 | CALL_EXPR@[140; 203) | 83 | CALL_EXPR@[140; 154) |
84 | PATH_EXPR@[140; 150) | 84 | PATH_EXPR@[140; 150) |
85 | PATH@[140; 150) | 85 | PATH@[140; 150) |
86 | PATH_SEGMENT@[140; 150) | 86 | PATH_SEGMENT@[140; 150) |
87 | NAME_REF@[140; 150) | 87 | NAME_REF@[140; 150) |
88 | IDENT@[140; 150) "test_merge" | 88 | IDENT@[140; 150) "test_merge" |
89 | ARG_LIST@[150; 203) | 89 | ARG_LIST@[150; 154) |
90 | L_PAREN@[150; 151) | 90 | L_PAREN@[150; 151) |
91 | ARRAY_EXPR@[151; 202) | 91 | ARRAY_EXPR@[151; 154) |
92 | L_BRACK@[151; 152) | 92 | L_BRACK@[151; 152) |
93 | err: `expected expression` | 93 | err: `expected expression` |
94 | ERROR@[152; 153) | 94 | ERROR@[152; 153) |
95 | DOLLAR@[152; 153) | 95 | DOLLAR@[152; 153) |
96 | err: `expected COMMA` | 96 | err: `expected COMMA` |
97 | TUPLE_EXPR@[153; 166) | 97 | PAREN_EXPR@[153; 154) |
98 | L_PAREN@[153; 154) | 98 | L_PAREN@[153; 154) |
99 | err: `expected expression` | 99 | err: `expected expression` |
100 | ERROR@[154; 155) | 100 | err: `expected R_PAREN` |
101 | DOLLAR@[154; 155) | 101 | err: `expected COMMA` |
102 | err: `expected COMMA` | 102 | err: `expected expression` |
103 | PATH_EXPR@[155; 160) | 103 | err: `expected R_BRACK` |
104 | PATH@[155; 160) | 104 | err: `expected COMMA` |
105 | PATH_SEGMENT@[155; 160) | 105 | err: `expected SEMI` |
106 | NAME_REF@[155; 160) | 106 | err: `expected expression` |
107 | IDENT@[155; 160) "input" | 107 | EXPR_STMT@[154; 155) |
108 | err: `expected COMMA` | 108 | ERROR@[154; 155) |
109 | err: `expected expression` | 109 | DOLLAR@[154; 155) |
110 | ERROR@[160; 161) | 110 | err: `expected SEMI` |
111 | COLON@[160; 161) | 111 | EXPR_STMT@[155; 160) |
112 | err: `expected COMMA` | 112 | PATH_EXPR@[155; 160) |
113 | PATH_EXPR@[161; 165) | 113 | PATH@[155; 160) |
114 | PATH@[161; 165) | 114 | PATH_SEGMENT@[155; 160) |
115 | PATH_SEGMENT@[161; 165) | 115 | NAME_REF@[155; 160) |
116 | NAME_REF@[161; 165) | 116 | IDENT@[155; 160) "input" |
117 | IDENT@[161; 165) "expr" | 117 | err: `expected SEMI` |
118 | R_PAREN@[165; 166) | 118 | err: `expected expression` |
119 | COMMA@[166; 167) | 119 | EXPR_STMT@[160; 161) |
120 | PREFIX_EXPR@[167; 170) | 120 | ERROR@[160; 161) |
121 | STAR@[167; 168) | 121 | COLON@[160; 161) |
122 | WHITESPACE@[168; 169) | 122 | err: `expected SEMI` |
123 | EXPR_STMT@[161; 165) | ||
124 | PATH_EXPR@[161; 165) | ||
125 | PATH@[161; 165) | ||
126 | PATH_SEGMENT@[161; 165) | ||
127 | NAME_REF@[161; 165) | ||
128 | IDENT@[161; 165) "expr" | ||
129 | err: `expected SEMI` | ||
123 | err: `expected expression` | 130 | err: `expected expression` |
124 | ERROR@[169; 170) | 131 | EXPR_STMT@[165; 166) |
125 | DOLLAR@[169; 170) | 132 | ERROR@[165; 166) |
126 | err: `expected COMMA` | 133 | R_PAREN@[165; 166) |
127 | BIN_EXPR@[170; 175) | 134 | err: `expected SEMI` |
128 | PAREN_EXPR@[170; 173) | 135 | err: `expected expression` |
129 | L_PAREN@[170; 171) | 136 | EXPR_STMT@[166; 167) |
130 | err: `expected expression` | 137 | ERROR@[166; 167) |
131 | ERROR@[171; 172) | 138 | COMMA@[166; 167) |
132 | COMMA@[171; 172) | 139 | err: `expected SEMI` |
133 | R_PAREN@[172; 173) | 140 | EXPR_STMT@[167; 170) |
134 | STAR@[173; 174) | 141 | PREFIX_EXPR@[167; 170) |
142 | STAR@[167; 168) | ||
143 | WHITESPACE@[168; 169) | ||
144 | err: `expected expression` | ||
145 | ERROR@[169; 170) | ||
146 | DOLLAR@[169; 170) | ||
147 | err: `expected SEMI` | ||
148 | EXPR_STMT@[170; 171) | ||
149 | PAREN_EXPR@[170; 171) | ||
150 | L_PAREN@[170; 171) | ||
151 | err: `expected expression` | ||
152 | err: `expected R_PAREN` | ||
153 | err: `expected SEMI` | ||
154 | err: `expected expression` | ||
155 | EXPR_STMT@[171; 172) | ||
156 | ERROR@[171; 172) | ||
157 | COMMA@[171; 172) | ||
158 | err: `expected SEMI` | ||
159 | err: `expected expression` | ||
160 | EXPR_STMT@[172; 173) | ||
161 | ERROR@[172; 173) | ||
162 | R_PAREN@[172; 173) | ||
163 | err: `expected SEMI` | ||
164 | EXPR_STMT@[173; 175) | ||
165 | PREFIX_EXPR@[173; 175) | ||
166 | STAR@[173; 174) | ||
167 | err: `expected expression` | ||
168 | ERROR@[174; 175) | ||
169 | R_BRACK@[174; 175) | ||
170 | err: `expected SEMI` | ||
171 | err: `expected expression` | ||
172 | EXPR_STMT@[175; 176) | ||
173 | ERROR@[175; 176) | ||
174 | COMMA@[175; 176) | ||
175 | err: `expected SEMI` | ||
176 | WHITESPACE@[176; 177) | ||
177 | EXPR_STMT@[177; 180) | ||
178 | ARRAY_EXPR@[177; 180) | ||
179 | L_BRACK@[177; 178) | ||
180 | err: `expected expression` | ||
181 | ERROR@[178; 179) | ||
182 | DOLLAR@[178; 179) | ||
183 | err: `expected COMMA` | ||
184 | PAREN_EXPR@[179; 180) | ||
185 | L_PAREN@[179; 180) | ||
186 | err: `expected expression` | ||
187 | err: `expected R_PAREN` | ||
188 | err: `expected COMMA` | ||
189 | err: `expected expression` | ||
190 | err: `expected R_BRACK` | ||
191 | err: `expected SEMI` | ||
192 | err: `expected expression` | ||
193 | EXPR_STMT@[180; 181) | ||
194 | ERROR@[180; 181) | ||
195 | DOLLAR@[180; 181) | ||
196 | err: `expected SEMI` | ||
197 | EXPR_STMT@[181; 187) | ||
198 | PATH_EXPR@[181; 187) | ||
199 | PATH@[181; 187) | ||
200 | PATH_SEGMENT@[181; 187) | ||
201 | NAME_REF@[181; 187) | ||
202 | IDENT@[181; 187) "output" | ||
203 | err: `expected SEMI` | ||
135 | err: `expected expression` | 204 | err: `expected expression` |
136 | ERROR@[174; 175) | 205 | EXPR_STMT@[187; 188) |
137 | R_BRACK@[174; 175) | 206 | ERROR@[187; 188) |
138 | COMMA@[175; 176) | 207 | COLON@[187; 188) |
139 | WHITESPACE@[176; 177) | 208 | err: `expected SEMI` |
140 | ARRAY_EXPR@[177; 202) | 209 | EXPR_STMT@[188; 192) |
141 | L_BRACK@[177; 178) | 210 | PATH_EXPR@[188; 192) |
211 | PATH@[188; 192) | ||
212 | PATH_SEGMENT@[188; 192) | ||
213 | NAME_REF@[188; 192) | ||
214 | IDENT@[188; 192) "expr" | ||
215 | err: `expected SEMI` | ||
142 | err: `expected expression` | 216 | err: `expected expression` |
143 | ERROR@[178; 179) | 217 | EXPR_STMT@[192; 193) |
144 | DOLLAR@[178; 179) | 218 | ERROR@[192; 193) |
145 | err: `expected COMMA` | 219 | R_PAREN@[192; 193) |
146 | TUPLE_EXPR@[179; 193) | 220 | err: `expected SEMI` |
147 | L_PAREN@[179; 180) | 221 | err: `expected expression` |
148 | err: `expected expression` | 222 | EXPR_STMT@[193; 194) |
149 | ERROR@[180; 181) | 223 | ERROR@[193; 194) |
150 | DOLLAR@[180; 181) | 224 | COMMA@[193; 194) |
151 | err: `expected COMMA` | 225 | err: `expected SEMI` |
152 | PATH_EXPR@[181; 187) | 226 | EXPR_STMT@[194; 197) |
153 | PATH@[181; 187) | 227 | PREFIX_EXPR@[194; 197) |
154 | PATH_SEGMENT@[181; 187) | 228 | STAR@[194; 195) |
155 | NAME_REF@[181; 187) | 229 | WHITESPACE@[195; 196) |
156 | IDENT@[181; 187) "output" | 230 | err: `expected expression` |
157 | err: `expected COMMA` | 231 | ERROR@[196; 197) |
158 | err: `expected expression` | 232 | DOLLAR@[196; 197) |
159 | ERROR@[187; 188) | 233 | err: `expected SEMI` |
160 | COLON@[187; 188) | 234 | EXPR_STMT@[197; 198) |
161 | err: `expected COMMA` | 235 | PAREN_EXPR@[197; 198) |
162 | PATH_EXPR@[188; 192) | 236 | L_PAREN@[197; 198) |
163 | PATH@[188; 192) | 237 | err: `expected expression` |
164 | PATH_SEGMENT@[188; 192) | 238 | err: `expected R_PAREN` |
165 | NAME_REF@[188; 192) | 239 | err: `expected SEMI` |
166 | IDENT@[188; 192) "expr" | 240 | err: `expected expression` |
167 | R_PAREN@[192; 193) | 241 | EXPR_STMT@[198; 199) |
168 | COMMA@[193; 194) | 242 | ERROR@[198; 199) |
169 | PREFIX_EXPR@[194; 197) | 243 | COMMA@[198; 199) |
170 | STAR@[194; 195) | 244 | err: `expected SEMI` |
171 | WHITESPACE@[195; 196) | 245 | err: `expected expression` |
172 | err: `expected expression` | 246 | EXPR_STMT@[199; 200) |
173 | ERROR@[196; 197) | 247 | ERROR@[199; 200) |
174 | DOLLAR@[196; 197) | 248 | R_PAREN@[199; 200) |
175 | err: `expected COMMA` | 249 | err: `expected SEMI` |
176 | BIN_EXPR@[197; 202) | 250 | EXPR_STMT@[200; 202) |
177 | PAREN_EXPR@[197; 200) | 251 | PREFIX_EXPR@[200; 202) |
178 | L_PAREN@[197; 198) | 252 | STAR@[200; 201) |
179 | err: `expected expression` | 253 | err: `expected expression` |
180 | ERROR@[198; 199) | 254 | ERROR@[201; 202) |
181 | COMMA@[198; 199) | 255 | R_BRACK@[201; 202) |
182 | R_PAREN@[199; 200) | ||
183 | STAR@[200; 201) | ||
184 | err: `expected expression` | ||
185 | ERROR@[201; 202) | ||
186 | R_BRACK@[201; 202) | ||
187 | err: `expected COMMA` | ||
188 | err: `expected expression` | ||
189 | err: `expected R_BRACK` | ||
190 | err: `expected COMMA` | ||
191 | err: `expected expression` | ||
192 | err: `expected R_BRACK` | ||
193 | R_PAREN@[202; 203) | ||
194 | err: `expected SEMI` | 256 | err: `expected SEMI` |
257 | err: `expected expression` | ||
258 | EXPR_STMT@[202; 203) | ||
259 | ERROR@[202; 203) | ||
260 | R_PAREN@[202; 203) | ||
261 | err: `expected SEMI` | ||
195 | WHITESPACE@[203; 204) | 262 | WHITESPACE@[203; 204) |
196 | BLOCK_EXPR@[204; 346) | 263 | BLOCK_EXPR@[204; 346) |
197 | BLOCK@[204; 346) | 264 | BLOCK@[204; 346) |