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

Function EagerlyValidateDeclarations

cel/options.go:213–215  ·  view source on GitHub ↗

EagerlyValidateDeclarations ensures that any collisions between configured declarations are caught at the time of the `NewEnv` call. Eagerly validating declarations is also useful for bootstrapping a base `cel.Env` value. Calls to base `Env.Extend()` will be significantly faster when declarations a

(enabled bool)

Source from the content-addressed store, hash-verified

211//
212// Disabled by default as not all environments are used for type-checking.
213func EagerlyValidateDeclarations(enabled bool) EnvOption {
214 return features(featureEagerlyValidateDeclarations, enabled)
215}
216
217// HomogeneousAggregateLiterals disables mixed type list and map literal values.
218//

Callers 8

CompileRuleFunction · 0.92
initFunction · 0.92
NewEnvFunction · 0.85
getStdEnvFunction · 0.85

Calls 1

featuresFunction · 0.85

Tested by 5

initFunction · 0.74