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

Method NewMap

cel/optimizer.go:412–414  ·  view source on GitHub ↗

NewMap creates a map from a set of entry expressions which contain a key and value expression.

(entries []ast.EntryExpr)

Source from the content-addressed store, hash-verified

410
411// NewMap creates a map from a set of entry expressions which contain a key and value expression.
412func (opt *optimizerExprFactory) NewMap(entries []ast.EntryExpr) ast.Expr {
413 return opt.fac.NewMap(opt.nextID(), entries)
414}
415
416// NewMapEntry creates a map entry with a key and value expression and a flag to indicate whether the
417// entry is optional.

Callers

nothing calls this directly

Calls 2

NewMapMethod · 0.65
nextIDMethod · 0.45

Tested by

no test coverage detected