(minPrec int)
| 480 | } |
| 481 | |
| 482 | func (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. |
no test coverage detected