()
| 454 | } |
| 455 | |
| 456 | func (p *prattParserWorker) parseExpr() ast.Expr { |
| 457 | if p.recursionLimitExceeded || p.isRecoveryLimitExceeded() { |
| 458 | return p.helper.newExpr(common.NoLocation) |
| 459 | } |
| 460 | if p.checkRecursion(p.recursionDepth + 1) { |
| 461 | return p.helper.newExpr(common.NoLocation) |
| 462 | } |
| 463 | p.recursionDepth++ |
| 464 | expr := p.parseBinaryAndTernary(0) |
| 465 | p.recursionDepth-- |
| 466 | return expr |
| 467 | } |
| 468 | |
| 469 | // parseElementExpr parses one element of a delimited construct (list, map, struct or argument |
| 470 | // list), accumulating lastParsedDepth to the deepest element seen so far. A construct is as |
no test coverage detected