()
| 1420 | } |
| 1421 | |
| 1422 | parseExponentiationExpression(): Node.Expression { |
| 1423 | const startToken = this.lookahead; |
| 1424 | |
| 1425 | let expr = this.inheritCoverGrammar(this.parseUnaryExpression); |
| 1426 | if (expr.type !== Syntax.UnaryExpression && this.match('**')) { |
| 1427 | this.nextToken(); |
| 1428 | this.context.isAssignmentTarget = false; |
| 1429 | this.context.isBindingElement = false; |
| 1430 | const left = expr; |
| 1431 | const right = this.isolateCoverGrammar(this.parseExponentiationExpression); |
| 1432 | expr = this.finalize(this.startNode(startToken), new Node.BinaryExpression('**', left, right)); |
| 1433 | } |
| 1434 | |
| 1435 | return expr; |
| 1436 | } |
| 1437 | |
| 1438 | // https://tc39.github.io/ecma262/#sec-exp-operator |
| 1439 | // https://tc39.github.io/ecma262/#sec-multiplicative-operators |
nothing calls this directly
no test coverage detected