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

Method checkAndIncrementRecursionDepth

parser/parser.go:993–998  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

VisitMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected