(params, kind?: string)
| 1897 | // https://tc39.github.io/ecma262/#sec-destructuring-binding-patterns |
| 1898 | |
| 1899 | parseBindingRestElement(params, kind?: string): Node.RestElement { |
| 1900 | const node = this.createNode(); |
| 1901 | |
| 1902 | this.expect('...'); |
| 1903 | const arg = this.parsePattern(params, kind); |
| 1904 | |
| 1905 | return this.finalize(node, new Node.RestElement(arg)); |
| 1906 | } |
| 1907 | |
| 1908 | parseArrayPattern(params, kind?: string): Node.ArrayPattern { |
| 1909 | const node = this.createNode(); |
no test coverage detected