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

Function variadicLogicalOperatorASTs

cel/options.go:249–251  ·  view source on GitHub ↗

variadicLogicalOperatorASTs flatten like-operator chained logical expressions into a single variadic call with N-terms. This behavior is useful when serializing to a protocol buffer as it will reduce the number of recursive calls needed to deserialize the AST later. For example, given the following

()

Source from the content-addressed store, hash-verified

247// expression: a && b && c && (d || e)
248// ast: call(_&&_, [a, b, c, call(_||_, [d, e])])
249func variadicLogicalOperatorASTs() EnvOption {
250 return features(featureVariadicLogicalASTs, true)
251}
252
253// Macros option extends the macro set configured in the environment.
254//

Callers 1

Calls 1

featuresFunction · 0.85

Tested by 1