MCPcopy Create free account
hub / github.com/babel/babel / parseExprOpBaseRightExpr

Function parseExprOpBaseRightExpr

packages/babel-parser/src/parser/expression.ts:613–626  ·  view source on GitHub ↗
(
    this: Parser,
    op: TokenType,
    prec: number,
  )

Source from the content-addressed store, hash-verified

611 // binary-operator expressions without applying any operator-specific functions.
612
613 parseExprOpBaseRightExpr(
614 this: Parser,
615 op: TokenType,
616 prec: number,
617 ): N.Expression {
618 const startLoc = this.state.startLoc;
619 this.state.canStartArrow = false;
620
621 return this.parseExprOp(
622 this.parseMaybeUnaryOrPrivate(),
623 startLoc,
624 tokenIsRightAssociative(op) ? prec - 1 : prec,
625 );
626 }
627
628 parseHackPipeBody(this: Parser): N.Expression {
629 const { startLoc } = this.state;

Callers

nothing calls this directly

Calls 2

tokenIsRightAssociativeFunction · 0.90
parseExprOpMethod · 0.80

Tested by

no test coverage detected