MCPcopy Create free account
hub / github.com/cel-expr/cel-go / checkAndIncrementRecursionDepth

Method checkAndIncrementRecursionDepth

parser/antlr_parser.go:916–921  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

VisitMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected