| ... | ... | @@ -334,13 +334,6 @@ fn parseContainerMembers(p: *Parse) Error!Members { |
| 334 | 334 | else => { |
| 335 | 335 | const identifier = p.tok_i; |
| 336 | 336 | defer last_field = identifier; |
| 337 | | const container_field = p.expectContainerField() catch |err| switch (err) { |
| 338 | | error.OutOfMemory => |e| return e, |
| 339 | | error.ParseError => { |
| 340 | | p.findNextContainerMember(); |
| 341 | | continue; |
| 342 | | }, |
| 343 | | }; |
| 344 | 337 | switch (field_state) { |
| 345 | 338 | .none => field_state = .seen, |
| 346 | 339 | .err, .seen => {}, |
| ... | ... | @@ -363,6 +356,13 @@ fn parseContainerMembers(p: *Parse) Error!Members { |
| 363 | 356 | field_state = .err; |
| 364 | 357 | }, |
| 365 | 358 | } |
| 359 | const container_field = p.expectContainerField() catch |err| switch (err) { |
| 360 | error.OutOfMemory => |e| return e, |
| 361 | error.ParseError => { |
| 362 | p.findNextContainerMember(); |
| 363 | continue; |
| 364 | }, |
| 365 | }; |
| 366 | 366 | try p.scratch.append(p.gpa, container_field); |
| 367 | 367 | switch (p.tokenTag(p.tok_i)) { |
| 368 | 368 | .comma => { |
| ... | ... | @@ -439,13 +439,6 @@ fn parseContainerMembers(p: *Parse) Error!Members { |
| 439 | 439 | |
| 440 | 440 | const identifier = p.tok_i; |
| 441 | 441 | defer last_field = identifier; |
| 442 | | const container_field = p.expectContainerField() catch |err| switch (err) { |
| 443 | | error.OutOfMemory => |e| return e, |
| 444 | | error.ParseError => { |
| 445 | | p.findNextContainerMember(); |
| 446 | | continue; |
| 447 | | }, |
| 448 | | }; |
| 449 | 442 | switch (field_state) { |
| 450 | 443 | .none => field_state = .seen, |
| 451 | 444 | .err, .seen => {}, |
| ... | ... | @@ -468,6 +461,13 @@ fn parseContainerMembers(p: *Parse) Error!Members { |
| 468 | 461 | field_state = .err; |
| 469 | 462 | }, |
| 470 | 463 | } |
| 464 | const container_field = p.expectContainerField() catch |err| switch (err) { |
| 465 | error.OutOfMemory => |e| return e, |
| 466 | error.ParseError => { |
| 467 | p.findNextContainerMember(); |
| 468 | continue; |
| 469 | }, |
| 470 | }; |
| 471 | 471 | try p.scratch.append(p.gpa, container_field); |
| 472 | 472 | switch (p.tokenTag(p.tok_i)) { |
| 473 | 473 | .comma => { |