()
| 991 | } |
| 992 | |
| 993 | func (p *parser) checkAndIncrementRecursionDepth() { |
| 994 | p.recursionDepth++ |
| 995 | if p.recursionDepth > p.maxRecursionDepth { |
| 996 | panic(&recursionError{message: "max recursion depth exceeded"}) |
| 997 | } |
| 998 | } |
| 999 | |
| 1000 | func (p *parser) decrementRecursionDepth() { |
| 1001 | p.recursionDepth-- |