MCPcopy Create free account
hub / github.com/cel-expr/cel-go / parseBinaryAndTernary

Method parseBinaryAndTernary

parser/pratt_parser.go:482–485  ·  view source on GitHub ↗
(minPrec int)

Source from the content-addressed store, hash-verified

480}
481
482func (p *prattParserWorker) parseBinaryAndTernary(minPrec int) ast.Expr {
483 lhs := p.parseSelectorChain()
484 return p.parseBinaryAndTernaryFromLhs(lhs, minPrec, p.lastParsedDepth)
485}
486
487// parseBinaryAndTernaryFromLhs parses the operators following lhs, which is lhsDepth deep, and
488// leaves the depth of the resulting expression in lastParsedDepth.

Callers 5

parseExprMethod · 0.95
parseTernaryMethod · 0.95
parseLogicalChainMethod · 0.95
parsePrimaryMethod · 0.95

Calls 2

parseSelectorChainMethod · 0.95

Tested by

no test coverage detected