(params, kind?: string)
| 1971 | } |
| 1972 | |
| 1973 | parseObjectPattern(params, kind?: string): Node.ObjectPattern { |
| 1974 | const node = this.createNode(); |
| 1975 | const properties: Node.Property[] = []; |
| 1976 | |
| 1977 | this.expect('{'); |
| 1978 | while (!this.match('}')) { |
| 1979 | properties.push(this.parsePropertyPattern(params, kind)); |
| 1980 | if (!this.match('}')) { |
| 1981 | this.expect(','); |
| 1982 | } |
| 1983 | } |
| 1984 | this.expect('}'); |
| 1985 | |
| 1986 | return this.finalize(node, new Node.ObjectPattern(properties)); |
| 1987 | } |
| 1988 | |
| 1989 | parsePattern(params, kind?: string): Node.BindingIdentifier | Node.BindingPattern { |
| 1990 | let pattern; |
no test coverage detected