()
| 2298 | } |
| 2299 | |
| 2300 | function parsePattern() { |
| 2301 | if (lookahead.type === Token.Identifier) { |
| 2302 | return parseVariableIdentifier(); |
| 2303 | } else if (match('[')) { |
| 2304 | return parseArrayPattern(); |
| 2305 | } else if (match('{')) { |
| 2306 | return parseObjectPattern(); |
| 2307 | } |
| 2308 | throwUnexpectedToken(lookahead); |
| 2309 | } |
| 2310 | |
| 2311 | function parsePatternWithDefault() { |
| 2312 | var pattern, right; |
no test coverage detected