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

Function EnableVariadicOperatorASTs

parser/options.go:158–163  ·  view source on GitHub ↗

EnableVariadicOperatorASTs enables a compact representation of chained like-kind commutative operators. e.g. `a || b || c || d` -> `call(op='||', args=[a, b, c, d])` The benefit of enabling variadic operators ASTs is a more compact representation deeply nested logic graphs.

(varArgASTs bool)

Source from the content-addressed store, hash-verified

156// The benefit of enabling variadic operators ASTs is a more compact representation deeply nested
157// logic graphs.
158func EnableVariadicOperatorASTs(varArgASTs bool) Option {
159 return func(opts *options) error {
160 opts.enableVariadicOperatorASTs = varArgASTs
161 return nil
162 }
163}

Callers 4

programFunction · 0.92
TestCheckFunction · 0.92
BenchmarkCheckFunction · 0.92
configureMethod · 0.92

Calls

no outgoing calls

Tested by 3

programFunction · 0.74
TestCheckFunction · 0.74
BenchmarkCheckFunction · 0.74