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

Method NewMap

common/ast/factory.go:58–58  ·  view source on GitHub ↗

NewMap creates an Expr value representing a map literal expression

(id int64, entries []EntryExpr)

Source from the content-addressed store, hash-verified

56
57 // NewMap creates an Expr value representing a map literal expression
58 NewMap(id int64, entries []EntryExpr) Expr
59
60 // NewMapEntry creates a MapEntry with a given key, value, and a flag indicating whether
61 // the key is optionally set.

Callers 5

TestConvertExprFunction · 0.95
TestSetKindCaseFunction · 0.95
TestMapFunction · 0.95
exprMapFunction · 0.65

Implementers 1

baseExprFactorycommon/ast/factory.go

Calls

no outgoing calls

Tested by 4

TestConvertExprFunction · 0.76
TestSetKindCaseFunction · 0.76
TestMapFunction · 0.76