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

Function exprMapEntry

common/ast/conversion.go:238–248  ·  view source on GitHub ↗
(factory ExprFactory, id int64, e *exprpb.Expr_CreateStruct_Entry)

Source from the content-addressed store, hash-verified

236}
237
238func exprMapEntry(factory ExprFactory, id int64, e *exprpb.Expr_CreateStruct_Entry) (EntryExpr, error) {
239 k, err := exprInternal(factory, e.GetMapKey())
240 if err != nil {
241 return nil, err
242 }
243 v, err := exprInternal(factory, e.GetValue())
244 if err != nil {
245 return nil, err
246 }
247 return factory.NewMapEntry(id, k, v, e.GetOptionalEntry()), nil
248}
249
250func exprSelect(factory ExprFactory, id int64, s *exprpb.Expr_Select) (Expr, error) {
251 op, err := exprInternal(factory, s.GetOperand())

Callers 2

ProtoToEntryExprFunction · 0.85
exprMapFunction · 0.85

Calls 3

exprInternalFunction · 0.85
GetValueMethod · 0.80
NewMapEntryMethod · 0.65

Tested by

no test coverage detected