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

Method NewMap

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

NewMap creates a CreateStruct instruction for a map where the map is comprised of the optional set of key, value entries.

(entries ...*exprpb.Expr_CreateStruct_Entry)

Source from the content-addressed store, hash-verified

83 // NewMap creates a CreateStruct instruction for a map where the map is comprised of the
84 // optional set of key, value entries.
85 NewMap(entries ...*exprpb.Expr_CreateStruct_Entry) *exprpb.Expr
86
87 // NewMapEntry creates a Map Entry for the key, value pair.
88 NewMapEntry(key *exprpb.Expr, val *exprpb.Expr, optional bool) *exprpb.Expr_CreateStruct_Entry

Callers 6

pruneOptionalMapEntriesFunction · 0.65
adaptLiteralFunction · 0.65
NewMapMethod · 0.65
NewMapMethod · 0.65
TestMacroInteropFunction · 0.65
TestMacroModernFunction · 0.65

Implementers 1

adaptingHelpercel/macro.go

Calls

no outgoing calls

Tested by 2

TestMacroInteropFunction · 0.52
TestMacroModernFunction · 0.52