()
| 1009 | } |
| 1010 | |
| 1011 | func (p *parser) checkAndIncrementRecursionDepth() { |
| 1012 | p.recursionDepth++ |
| 1013 | if p.recursionDepth > p.maxRecursionDepth { |
| 1014 | panic(&recursionError{message: "max recursion depth exceeded"}) |
| 1015 | } |
| 1016 | } |
| 1017 | |
| 1018 | func (p *parser) decrementRecursionDepth() { |
| 1019 | p.recursionDepth-- |