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

Method NewMap

parser/macro.go:209–209  ·  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 ...ast.EntryExpr)

Source from the content-addressed store, hash-verified

207 // NewMap creates a CreateStruct instruction for a map where the map is comprised of the
208 // optional set of key, value entries.
209 NewMap(entries ...ast.EntryExpr) ast.Expr
210
211 // NewMapEntry creates a Map Entry for the key, value pair.
212 NewMapEntry(key ast.Expr, val ast.Expr, optional bool) ast.EntryExpr

Callers 8

maybeCreateLiteralMethod · 0.65
pruneMethod · 0.65
newMapMethod · 0.65
CopyMethod · 0.65
NewMapMethod · 0.65
OptimizeMethod · 0.65
transformMapFunction · 0.65
transformMapEntryFunction · 0.65

Implementers 1

exprHelperparser/helper.go

Calls

no outgoing calls

Tested by

no test coverage detected