| 5548 | } |
| 5549 | |
| 5550 | static void arraydestructuring (LexState *ls) { |
| 5551 | auto line = ls->getLineNumber(); |
| 5552 | auto& pairs = *pluto_newclassinst(ls->L, DestructuringPairs); |
| 5553 | luaX_next(ls); /* skip '[' */ |
| 5554 | expdesc prop; |
| 5555 | init_exp(&prop, VKINT, 0); |
| 5556 | prop.u.ival = 1; |
| 5557 | do { |
| 5558 | pairs.emplace_back(str_checkname(ls, N_OVERRIDABLE), prop); |
| 5559 | prop.u.ival++; |
| 5560 | } while (testnext(ls, ',') && gett(ls) != ']'); |
| 5561 | check_match(ls, ']', '[', line); |
| 5562 | restdestructuring(ls, line, pairs); |
| 5563 | ls->L->top.p--; /* pop pairs */ |
| 5564 | } |
| 5565 | |
| 5566 | |
| 5567 | static void localstat (LexState *ls, bool isexport = false) { |
no test coverage detected