diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-05-29 07:40:39 +0100 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-05-29 07:40:39 +0100 |
commit | 7a1cae59acf72f821343b2ba10ef69fb92a5b952 (patch) | |
tree | 26e606ccd132a24e9bc89cf174e4adadf60c5992 /crates/ra_syntax/tests/data/parser/err/0024_many_type_parens.txt | |
parent | b0d84cb8faefedde7ace4ff152a2a13408e79e5d (diff) | |
parent | 80a17251473bd6213a4c8a51ea7f732394d173c5 (diff) |
Merge #1337
1337: Move syntax errors our of syntax tree r=matklad a=matklad
I am not really sure if it's a good idea, but `SyntaxError` do not really belong to a `SyntaxTree`. So let's just store them on the side?
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_syntax/tests/data/parser/err/0024_many_type_parens.txt')
-rw-r--r-- | crates/ra_syntax/tests/data/parser/err/0024_many_type_parens.txt | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/crates/ra_syntax/tests/data/parser/err/0024_many_type_parens.txt b/crates/ra_syntax/tests/data/parser/err/0024_many_type_parens.txt index 0fb73d838..4f505fa76 100644 --- a/crates/ra_syntax/tests/data/parser/err/0024_many_type_parens.txt +++ b/crates/ra_syntax/tests/data/parser/err/0024_many_type_parens.txt | |||
@@ -103,8 +103,6 @@ SOURCE_FILE@[0; 240) | |||
103 | NAME_REF@[83; 87) | 103 | NAME_REF@[83; 87) |
104 | IDENT@[83; 87) "Copy" | 104 | IDENT@[83; 87) "Copy" |
105 | R_PAREN@[87; 88) ")" | 105 | R_PAREN@[87; 88) ")" |
106 | err: `expected COMMA` | ||
107 | err: `expected R_ANGLE` | ||
108 | WHITESPACE@[88; 89) " " | 106 | WHITESPACE@[88; 89) " " |
109 | PLUS@[89; 90) "+" | 107 | PLUS@[89; 90) "+" |
110 | WHITESPACE@[90; 91) " " | 108 | WHITESPACE@[90; 91) " " |
@@ -141,8 +139,6 @@ SOURCE_FILE@[0; 240) | |||
141 | LIFETIME@[117; 119) "\'a" | 139 | LIFETIME@[117; 119) "\'a" |
142 | R_ANGLE@[119; 120) ">" | 140 | R_ANGLE@[119; 120) ">" |
143 | R_PAREN@[120; 121) ")" | 141 | R_PAREN@[120; 121) ")" |
144 | err: `expected SEMI` | ||
145 | err: `expected expression` | ||
146 | EXPR_STMT@[121; 123) | 142 | EXPR_STMT@[121; 123) |
147 | ERROR@[121; 122) | 143 | ERROR@[121; 122) |
148 | R_ANGLE@[121; 122) ">" | 144 | R_ANGLE@[121; 122) ">" |
@@ -165,54 +161,35 @@ SOURCE_FILE@[0; 240) | |||
165 | TYPE_ARG@[139; 141) | 161 | TYPE_ARG@[139; 141) |
166 | PAREN_TYPE@[139; 141) | 162 | PAREN_TYPE@[139; 141) |
167 | L_PAREN@[139; 140) "(" | 163 | L_PAREN@[139; 140) "(" |
168 | err: `expected type` | ||
169 | ERROR@[140; 141) | 164 | ERROR@[140; 141) |
170 | QUESTION@[140; 141) "?" | 165 | QUESTION@[140; 141) "?" |
171 | err: `expected R_PAREN` | ||
172 | err: `expected COMMA` | ||
173 | err: `expected R_ANGLE` | ||
174 | err: `expected SEMI` | ||
175 | EXPR_STMT@[141; 146) | 166 | EXPR_STMT@[141; 146) |
176 | PATH_EXPR@[141; 146) | 167 | PATH_EXPR@[141; 146) |
177 | PATH@[141; 146) | 168 | PATH@[141; 146) |
178 | PATH_SEGMENT@[141; 146) | 169 | PATH_SEGMENT@[141; 146) |
179 | NAME_REF@[141; 146) | 170 | NAME_REF@[141; 146) |
180 | IDENT@[141; 146) "Sized" | 171 | IDENT@[141; 146) "Sized" |
181 | err: `expected SEMI` | ||
182 | err: `expected expression` | ||
183 | EXPR_STMT@[146; 147) | 172 | EXPR_STMT@[146; 147) |
184 | ERROR@[146; 147) | 173 | ERROR@[146; 147) |
185 | R_PAREN@[146; 147) ")" | 174 | R_PAREN@[146; 147) ")" |
186 | err: `expected SEMI` | ||
187 | WHITESPACE@[147; 148) " " | 175 | WHITESPACE@[147; 148) " " |
188 | err: `expected expression` | ||
189 | EXPR_STMT@[148; 149) | 176 | EXPR_STMT@[148; 149) |
190 | ERROR@[148; 149) | 177 | ERROR@[148; 149) |
191 | PLUS@[148; 149) "+" | 178 | PLUS@[148; 149) "+" |
192 | err: `expected SEMI` | ||
193 | WHITESPACE@[149; 150) " " | 179 | WHITESPACE@[149; 150) " " |
194 | EXPR_STMT@[150; 151) | 180 | EXPR_STMT@[150; 151) |
195 | PAREN_EXPR@[150; 151) | 181 | PAREN_EXPR@[150; 151) |
196 | L_PAREN@[150; 151) "(" | 182 | L_PAREN@[150; 151) "(" |
197 | err: `expected expression` | ||
198 | err: `expected R_PAREN` | ||
199 | err: `expected SEMI` | ||
200 | EXPR_STMT@[151; 157) | 183 | EXPR_STMT@[151; 157) |
201 | FOR_EXPR@[151; 157) | 184 | FOR_EXPR@[151; 157) |
202 | FOR_KW@[151; 154) "for" | 185 | FOR_KW@[151; 154) "for" |
203 | err: `expected pattern` | ||
204 | ERROR@[154; 155) | 186 | ERROR@[154; 155) |
205 | L_ANGLE@[154; 155) "<" | 187 | L_ANGLE@[154; 155) "<" |
206 | err: `expected IN_KW` | ||
207 | err: `expected expression` | ||
208 | ERROR@[155; 157) | 188 | ERROR@[155; 157) |
209 | LIFETIME@[155; 157) "\'a" | 189 | LIFETIME@[155; 157) "\'a" |
210 | err: `expected a block` | ||
211 | err: `expected expression` | ||
212 | EXPR_STMT@[157; 158) | 190 | EXPR_STMT@[157; 158) |
213 | ERROR@[157; 158) | 191 | ERROR@[157; 158) |
214 | R_ANGLE@[157; 158) ">" | 192 | R_ANGLE@[157; 158) ">" |
215 | err: `expected SEMI` | ||
216 | WHITESPACE@[158; 159) " " | 193 | WHITESPACE@[158; 159) " " |
217 | EXPR_STMT@[159; 180) | 194 | EXPR_STMT@[159; 180) |
218 | BIN_EXPR@[159; 180) | 195 | BIN_EXPR@[159; 180) |
@@ -225,11 +202,9 @@ SOURCE_FILE@[0; 240) | |||
225 | NAME_REF@[159; 164) | 202 | NAME_REF@[159; 164) |
226 | IDENT@[159; 164) "Trait" | 203 | IDENT@[159; 164) "Trait" |
227 | L_ANGLE@[164; 165) "<" | 204 | L_ANGLE@[164; 165) "<" |
228 | err: `expected expression` | ||
229 | ERROR@[165; 167) | 205 | ERROR@[165; 167) |
230 | LIFETIME@[165; 167) "\'a" | 206 | LIFETIME@[165; 167) "\'a" |
231 | R_ANGLE@[167; 168) ">" | 207 | R_ANGLE@[167; 168) ">" |
232 | err: `expected expression` | ||
233 | ERROR@[168; 169) | 208 | ERROR@[168; 169) |
234 | R_PAREN@[168; 169) ")" | 209 | R_PAREN@[168; 169) ")" |
235 | WHITESPACE@[169; 170) " " | 210 | WHITESPACE@[169; 170) " " |
@@ -244,10 +219,8 @@ SOURCE_FILE@[0; 240) | |||
244 | IDENT@[173; 177) "Copy" | 219 | IDENT@[173; 177) "Copy" |
245 | R_PAREN@[177; 178) ")" | 220 | R_PAREN@[177; 178) ")" |
246 | R_ANGLE@[178; 179) ">" | 221 | R_ANGLE@[178; 179) ">" |
247 | err: `expected expression` | ||
248 | ERROR@[179; 180) | 222 | ERROR@[179; 180) |
249 | SEMI@[179; 180) ";" | 223 | SEMI@[179; 180) ";" |
250 | err: `expected SEMI` | ||
251 | WHITESPACE@[180; 185) "\n " | 224 | WHITESPACE@[180; 185) "\n " |
252 | LET_STMT@[185; 235) | 225 | LET_STMT@[185; 235) |
253 | LET_KW@[185; 188) "let" | 226 | LET_KW@[185; 188) "let" |
@@ -288,8 +261,6 @@ SOURCE_FILE@[0; 240) | |||
288 | LIFETIME@[211; 213) "\'a" | 261 | LIFETIME@[211; 213) "\'a" |
289 | R_ANGLE@[213; 214) ">" | 262 | R_ANGLE@[213; 214) ">" |
290 | R_PAREN@[214; 215) ")" | 263 | R_PAREN@[214; 215) ")" |
291 | err: `expected COMMA` | ||
292 | err: `expected R_ANGLE` | ||
293 | WHITESPACE@[215; 216) " " | 264 | WHITESPACE@[215; 216) " " |
294 | PLUS@[216; 217) "+" | 265 | PLUS@[216; 217) "+" |
295 | WHITESPACE@[217; 218) " " | 266 | WHITESPACE@[217; 218) " " |
@@ -313,8 +284,6 @@ SOURCE_FILE@[0; 240) | |||
313 | NAME_REF@[229; 234) | 284 | NAME_REF@[229; 234) |
314 | IDENT@[229; 234) "Sized" | 285 | IDENT@[229; 234) "Sized" |
315 | R_PAREN@[234; 235) ")" | 286 | R_PAREN@[234; 235) ")" |
316 | err: `expected SEMI` | ||
317 | err: `expected expression` | ||
318 | EXPR_STMT@[235; 237) | 287 | EXPR_STMT@[235; 237) |
319 | ERROR@[235; 236) | 288 | ERROR@[235; 236) |
320 | R_ANGLE@[235; 236) ">" | 289 | R_ANGLE@[235; 236) ">" |
@@ -322,3 +291,34 @@ SOURCE_FILE@[0; 240) | |||
322 | WHITESPACE@[237; 238) "\n" | 291 | WHITESPACE@[237; 238) "\n" |
323 | R_CURLY@[238; 239) "}" | 292 | R_CURLY@[238; 239) "}" |
324 | WHITESPACE@[239; 240) "\n" | 293 | WHITESPACE@[239; 240) "\n" |
294 | err: `expected COMMA` | ||
295 | err: `expected R_ANGLE` | ||
296 | err: `expected SEMI` | ||
297 | err: `expected expression` | ||
298 | err: `expected type` | ||
299 | err: `expected R_PAREN` | ||
300 | err: `expected COMMA` | ||
301 | err: `expected R_ANGLE` | ||
302 | err: `expected SEMI` | ||
303 | err: `expected SEMI` | ||
304 | err: `expected expression` | ||
305 | err: `expected SEMI` | ||
306 | err: `expected expression` | ||
307 | err: `expected SEMI` | ||
308 | err: `expected expression` | ||
309 | err: `expected R_PAREN` | ||
310 | err: `expected SEMI` | ||
311 | err: `expected pattern` | ||
312 | err: `expected IN_KW` | ||
313 | err: `expected expression` | ||
314 | err: `expected a block` | ||
315 | err: `expected expression` | ||
316 | err: `expected SEMI` | ||
317 | err: `expected expression` | ||
318 | err: `expected expression` | ||
319 | err: `expected expression` | ||
320 | err: `expected SEMI` | ||
321 | err: `expected COMMA` | ||
322 | err: `expected R_ANGLE` | ||
323 | err: `expected SEMI` | ||
324 | err: `expected expression` | ||