(params, kind)
| 2527 | } |
| 2528 | |
| 2529 | function parseObjectPattern(params, kind) { |
| 2530 | var node = new Node(), properties = []; |
| 2531 | |
| 2532 | expect('{'); |
| 2533 | |
| 2534 | while (!match('}')) { |
| 2535 | properties.push(parsePropertyPattern(params, kind)); |
| 2536 | if (!match('}')) { |
| 2537 | expect(','); |
| 2538 | } |
| 2539 | } |
| 2540 | |
| 2541 | lex(); |
| 2542 | |
| 2543 | return node.finishObjectPattern(properties); |
| 2544 | } |
| 2545 | |
| 2546 | function parsePattern(params, kind) { |
| 2547 | if (match('[')) { |
no test coverage detected