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

Function ParserExpressionSizeLimit

cel/options.go:949–951  ·  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

947// ParserExpressionSizeLimit adjusts the number of code points the expression parser is allowed to parse.
948// Defaults are defined in the parser package. A negative value means unbounded.
949func ParserExpressionSizeLimit(limit int) EnvOption {
950 return setLimit(limitCodePointSize, limit)
951}
952
953// EnableHiddenAccumulatorName sets the parser to use the identifier '@result' for accumulators
954// which is not normally accessible from CEL source.

Calls 1

setLimitFunction · 0.85