MCPcopy Create free account
hub / github.com/microsoft/typescript-go / isBinaryOperator

Method isBinaryOperator

internal/parser/parser.go:6301–6306  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6299}
6300
6301func (p *Parser) isBinaryOperator() bool {
6302 if p.inDisallowInContext() && p.token == ast.KindInKeyword {
6303 return false
6304 }
6305 return ast.GetBinaryOperatorPrecedence(p.token) != ast.OperatorPrecedenceInvalid
6306}
6307
6308func (p *Parser) isValidHeritageClauseObjectLiteral() bool {
6309 return p.lookAhead((*Parser).nextIsValidHeritageClauseObjectLiteral)

Callers 2

isStartOfExpressionMethod · 0.95

Calls 2

inDisallowInContextMethod · 0.95

Tested by

no test coverage detected