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

Method NewMapEntry

cel/macro.go:433–436  ·  view source on GitHub ↗

NewMapEntry creates a Map Entry for the key, value pair.

(key *exprpb.Expr, val *exprpb.Expr, optional bool)

Source from the content-addressed store, hash-verified

431
432// NewMapEntry creates a Map Entry for the key, value pair.
433func (ah *adaptingHelper) NewMapEntry(key *exprpb.Expr, val *exprpb.Expr, optional bool) *exprpb.Expr_CreateStruct_Entry {
434 return mustAdaptToProtoEntry(
435 ah.modernHelper.NewMapEntry(mustAdaptToExpr(key), mustAdaptToExpr(val), optional))
436}
437
438// NewObject creates a CreateStruct instruction for an object with a given type name and
439// optional set of field initializers.

Callers

nothing calls this directly

Calls 3

mustAdaptToProtoEntryFunction · 0.85
mustAdaptToExprFunction · 0.85
NewMapEntryMethod · 0.65

Tested by

no test coverage detected