(tokens, value)
| 22458 | } |
| 22459 | |
| 22460 | function destructuringPatternMatch(tokens, value) { |
| 22461 | var first = value.first; |
| 22462 | |
| 22463 | if (!first) |
| 22464 | return; |
| 22465 | |
| 22466 | _.zip(tokens, Array.isArray(first) ? first : [ first ]).forEach(function(val) { |
| 22467 | var token = val[0]; |
| 22468 | var value = val[1]; |
| 22469 | |
| 22470 | if (token && value) |
| 22471 | token.first = value; |
| 22472 | else if (token && token.first && !value) |
| 22473 | warning("W080", token.first, token.first.value); |
| 22474 | }); |
| 22475 | } |
| 22476 | |
| 22477 | function blockVariableStatement(type, statement, context) { |
| 22478 | // used for both let and const statements |
no test coverage detected