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

Function parseExprOps

packages/babel-parser/src/parser/expression.ts:456–468  ·  view source on GitHub ↗
(
    this: Parser,
    refExpressionErrors: ExpressionErrors,
  )

Source from the content-addressed store, hash-verified

454 // https://tc39.es/ecma262/#prod-ShortCircuitExpression
455
456 parseExprOps(
457 this: Parser,
458 refExpressionErrors: ExpressionErrors,
459 ): N.Expression {
460 const startLoc = this.state.startLoc;
461 const expr = this.parseMaybeUnaryOrPrivate(refExpressionErrors);
462
463 if (this.shouldExitDescending(expr)) {
464 return expr;
465 }
466
467 return this.parseExprOp(expr, startLoc, -1);
468 }
469
470 isEscapedKeywordOperatorAfterLineBreak(this: Parser): boolean {
471 return (

Callers

nothing calls this directly

Calls 1

parseExprOpMethod · 0.80

Tested by

no test coverage detected