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

Function enableOptionalSyntax

cel/library.go:710–715  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

708}
709
710func enableOptionalSyntax() EnvOption {
711 return func(e *Env) (*Env, error) {
712 e.prsrOpts = append(e.prsrOpts, parser.EnableOptionalSyntax(true))
713 return e, nil
714 }
715}
716
717// EnableErrorOnBadPresenceTest enables error generation when a presence test or optional field
718// selection is performed on a primitive type.

Callers 1

CompileOptionsMethod · 0.85

Calls 1

EnableOptionalSyntaxFunction · 0.92

Tested by

no test coverage detected