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

Method NewMap

cel/optimizer.go:418–420  ·  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

416
417// NewMap creates a map from a set of entry expressions which contain a key and value expression.
418func (opt *optimizerExprFactory) NewMap(entries []ast.EntryExpr) ast.Expr {
419 return opt.fac.NewMap(opt.nextID(), entries)
420}
421
422// NewMapEntry creates a map entry with a key and value expression and a flag to indicate whether the
423// entry is optional.

Callers

nothing calls this directly

Calls 2

NewMapMethod · 0.65
nextIDMethod · 0.45

Tested by

no test coverage detected