()
| 914 | } |
| 915 | |
| 916 | func (p *antlrVisitor) checkAndIncrementRecursionDepth() { |
| 917 | p.recursionDepth++ |
| 918 | if p.recursionDepth > p.maxRecursionDepth { |
| 919 | panic(&recursionError{message: "max recursion depth exceeded"}) |
| 920 | } |
| 921 | } |
| 922 | |
| 923 | func (p *antlrVisitor) decrementRecursionDepth() { |
| 924 | p.recursionDepth-- |