()
| 3061 | } |
| 3062 | |
| 3063 | parseGetterMethod(): Node.FunctionExpression { |
| 3064 | const node = this.createNode(); |
| 3065 | |
| 3066 | const isGenerator = false; |
| 3067 | const previousAllowYield = this.context.allowYield; |
| 3068 | this.context.allowYield = !isGenerator; |
| 3069 | const formalParameters = this.parseFormalParameters(); |
| 3070 | if (formalParameters.params.length > 0) { |
| 3071 | this.tolerateError(Messages.BadGetterArity); |
| 3072 | } |
| 3073 | const method = this.parsePropertyMethod(formalParameters); |
| 3074 | this.context.allowYield = previousAllowYield; |
| 3075 | |
| 3076 | return this.finalize(node, new Node.FunctionExpression(null, formalParameters.params, method, isGenerator)); |
| 3077 | } |
| 3078 | |
| 3079 | parseSetterMethod(): Node.FunctionExpression { |
| 3080 | const node = this.createNode(); |
no test coverage detected