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

Function ValidatedDeclarations

checker/options.go:38–43  ·  view source on GitHub ↗

ValidatedDeclarations provides a references to validated declarations which will be copied into new checker instances.

(env *Env)

Source from the content-addressed store, hash-verified

36// ValidatedDeclarations provides a references to validated declarations which will be copied
37// into new checker instances.
38func ValidatedDeclarations(env *Env) Option {
39 return func(opts *options) error {
40 opts.validatedDeclarations = env.validatedDeclarations()
41 return nil
42 }
43}
44
45// JSONFieldNames enables the use of json names instead of the standard protobuf snake_case field names
46func JSONFieldNames(enabled bool) Option {

Callers 2

ExtendMethod · 0.92
TestCopyDeclarationsFunction · 0.85

Calls 1

validatedDeclarationsMethod · 0.80

Tested by 1

TestCopyDeclarationsFunction · 0.68