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

Function ParserExpressionSizeLimit

cel/options.go:1011–1013  ·  view source on GitHub ↗

ParserExpressionSizeLimit adjusts the number of code points the expression parser is allowed to parse. Defaults are defined in the parser package. A negative value means unbounded.

(limit int)

Source from the content-addressed store, hash-verified

1009// ParserExpressionSizeLimit adjusts the number of code points the expression parser is allowed to parse.
1010// Defaults are defined in the parser package. A negative value means unbounded.
1011func ParserExpressionSizeLimit(limit int) EnvOption {
1012 return setLimit(limitCodePointSize, limit)
1013}
1014
1015// ExpressionNodeLimit adjusts the maximum number of expression nodes permitted during parsing
1016// and checking, including nodes created by macro expansion. Defaults are defined in the parser

Calls 1

setLimitFunction · 0.85