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

Function enableOptionalSyntax

cel/library.go:965–970  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

963}
964
965func enableOptionalSyntax() EnvOption {
966 return func(e *Env) (*Env, error) {
967 e.prsrOpts = append(e.prsrOpts, parser.EnableOptionalSyntax(true))
968 return e, nil
969 }
970}
971
972// EnableErrorOnBadPresenceTest enables error generation when a presence test or optional field
973// selection is performed on a primitive type.

Callers 1

CompileOptionsMethod · 0.85

Calls 1

EnableOptionalSyntaxFunction · 0.92

Tested by

no test coverage detected