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

Method NewMap

parser/helper.go:417–419  ·  view source on GitHub ↗

NewMap implements the ExprHelper interface method.

(entries ...ast.EntryExpr)

Source from the content-addressed store, hash-verified

415
416// NewMap implements the ExprHelper interface method.
417func (e *exprHelper) NewMap(entries ...ast.EntryExpr) ast.Expr {
418 return e.exprFactory.NewMap(e.nextMacroID(), entries)
419}
420
421// NewMapEntry implements the ExprHelper interface method.
422func (e *exprHelper) NewMapEntry(key ast.Expr, val ast.Expr, optional bool) ast.EntryExpr {

Callers

nothing calls this directly

Calls 2

nextMacroIDMethod · 0.95
NewMapMethod · 0.65

Tested by

no test coverage detected