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

Function EagerlyValidateDeclarations

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

238//
239// Disabled by default as not all environments are used for type-checking.
240func EagerlyValidateDeclarations(enabled bool) EnvOption {
241 return features(featureEagerlyValidateDeclarations, enabled)
242}
243
244// HomogeneousAggregateLiterals disables mixed type list and map literal values.
245//

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