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

Function EnableHiddenAccumulatorName

cel/options.go:1055–1060  ·  view source on GitHub ↗

EnableHiddenAccumulatorName sets the parser to use the identifier '@result' for accumulators which is not normally accessible from CEL source.

(enabled bool)

Source from the content-addressed store, hash-verified

1053// EnableHiddenAccumulatorName sets the parser to use the identifier '@result' for accumulators
1054// which is not normally accessible from CEL source.
1055func EnableHiddenAccumulatorName(enabled bool) EnvOption {
1056 return func(e *Env) (*Env, error) {
1057 e.prsrOpts = append(e.prsrOpts, parser.EnableHiddenAccumulatorName(enabled))
1058 return e, nil
1059 }
1060}
1061
1062func maybeInteropProvider(provider any) (types.Provider, error) {
1063 switch p := provider.(type) {

Callers 2

testCompreEnvFunction · 0.92

Calls 1

Tested by 2

testCompreEnvFunction · 0.74