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

Function enableOptionalSyntax

cel/library.go:673–678  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

671}
672
673func enableOptionalSyntax() EnvOption {
674 return func(e *Env) (*Env, error) {
675 e.prsrOpts = append(e.prsrOpts, parser.EnableOptionalSyntax(true))
676 return e, nil
677 }
678}
679
680// EnableErrorOnBadPresenceTest enables error generation when a presence test or optional field
681// selection is performed on a primitive type.

Callers 1

CompileOptionsMethod · 0.85

Calls 1

EnableOptionalSyntaxFunction · 0.92

Tested by

no test coverage detected