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

Function isBinaryOperator

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

Source from the content-addressed store, hash-verified

478
479 // Whether `op`, the current token, continues a binary expression.
480 isBinaryOperator(this: Parser, op: TokenType): boolean {
481 return (
482 tokenIsOperator(op) &&
483 (this.prodParam.hasIn || op !== tt._in) &&
484 !this.isEscapedKeywordOperatorAfterLineBreak()
485 );
486 }
487
488 // Parse binary operators with the operator precedence parsing
489 // algorithm. `left` is the left-hand side of the operator.

Callers

nothing calls this directly

Calls 1

tokenIsOperatorFunction · 0.90

Tested by

no test coverage detected