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

Function invalidOptionalEntryInit

interpreter/interpretable.go:1936–1938  ·  view source on GitHub ↗
(field any, value ref.Val)

Source from the content-addressed store, hash-verified

1934}
1935
1936func invalidOptionalEntryInit(field any, value ref.Val) ref.Val {
1937 return types.NewErr("cannot initialize optional entry '%v' from non-optional value %v", field, value)
1938}
1939
1940func invalidOptionalElementInit(value ref.Val) ref.Val {
1941 return types.NewErr("cannot initialize optional list element from non-optional value %v", value)

Callers 2

ExecMethod · 0.85
ExecMethod · 0.85

Calls 1

NewErrFunction · 0.92

Tested by

no test coverage detected