MCPcopy
hub / github.com/jquery/esprima / parseExponentiationExpression

Method parseExponentiationExpression

src/parser.ts:1422–1436  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 6

inheritCoverGrammarMethod · 0.95
matchMethod · 0.95
nextTokenMethod · 0.95
isolateCoverGrammarMethod · 0.95
finalizeMethod · 0.95
startNodeMethod · 0.95

Tested by

no test coverage detected