| 695 | if (type == "{") return contCommasep(proppattern, "}"); |
| 696 | } |
| 697 | function proppattern(type, value) { |
| 698 | if (type == "variable" && !cx.stream.match(/^\s*:/, false)) { |
| 699 | register(value); |
| 700 | return cont(maybeAssign); |
| 701 | } |
| 702 | if (type == "variable") cx.marked = "property"; |
| 703 | if (type == "spread") return cont(pattern); |
| 704 | if (type == "}") return pass(); |
| 705 | if (type == "[") return cont(expression, expect(']'), expect(':'), proppattern); |
| 706 | return cont(expect(":"), pattern, maybeAssign); |
| 707 | } |
| 708 | function eltpattern() { |
| 709 | return pass(pattern, maybeAssign) |
| 710 | } |