(options)
| 2797 | } |
| 2798 | |
| 2799 | parseFormalParameter(options) { |
| 2800 | const params: any[] = []; |
| 2801 | const param = this.match('...') ? this.parseRestElement(params) : this.parsePatternWithDefault(params); |
| 2802 | for (let i = 0; i < params.length; i++) { |
| 2803 | this.validateParam(options, params[i], params[i].value); |
| 2804 | } |
| 2805 | options.simple = options.simple && (param instanceof Node.Identifier); |
| 2806 | options.params.push(param); |
| 2807 | } |
| 2808 | |
| 2809 | parseFormalParameters(firstRestricted?) { |
| 2810 | let options; |
no test coverage detected