()
| 5428 | warning("W104", state.tokens.curr, "destructuring expression"); |
| 5429 | } |
| 5430 | var nextInnerDE = function() { |
| 5431 | var ident; |
| 5432 | if (checkPunctuators(state.tokens.next, ["[", "{"])) { |
| 5433 | ids = destructuringExpression(); |
| 5434 | for (var id in ids) { |
| 5435 | id = ids[id]; |
| 5436 | identifiers.push({ id: id.id, token: id.token }); |
| 5437 | } |
| 5438 | } else if (checkPunctuators(state.tokens.next, [","])) { |
| 5439 | identifiers.push({ id: null, token: state.tokens.curr }); |
| 5440 | } else if (checkPunctuators(state.tokens.next, ["("])) { |
| 5441 | advance("("); |
| 5442 | nextInnerDE(); |
| 5443 | advance(")"); |
| 5444 | } else { |
| 5445 | var is_rest = checkPunctuators(state.tokens.next, ["..."]); |
| 5446 | ident = identifier(); |
| 5447 | if (ident) |
| 5448 | identifiers.push({ id: ident, token: state.tokens.curr }); |
| 5449 | return is_rest; |
| 5450 | } |
| 5451 | return false; |
| 5452 | }; |
| 5453 | if (checkPunctuators(state.tokens.next, ["["])) { |
| 5454 | advance("["); |
| 5455 | var element_after_rest = false; |
no test coverage detected