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

Method checkAndIncrementRecursionDepth

parser/parser.go:1011–1016  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

VisitMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected