()
| 2281 | } |
| 2282 | |
| 2283 | function parseObjectPattern() { |
| 2284 | var node = new Node(), properties = []; |
| 2285 | |
| 2286 | expect('{'); |
| 2287 | |
| 2288 | while (!match('}')) { |
| 2289 | properties.push(parsePropertyPattern()); |
| 2290 | if (!match('}')) { |
| 2291 | expect(','); |
| 2292 | } |
| 2293 | } |
| 2294 | |
| 2295 | lex(); |
| 2296 | |
| 2297 | return node.finishObjectPattern(properties); |
| 2298 | } |
| 2299 | |
| 2300 | function parsePattern() { |
| 2301 | if (lookahead.type === Token.Identifier) { |
no test coverage detected