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

Method NewMap

parser/helper.go:458–460  ·  view source on GitHub ↗

NewMap implements the ExprHelper interface method.

(entries ...ast.EntryExpr)

Source from the content-addressed store, hash-verified

456
457// NewMap implements the ExprHelper interface method.
458func (e *exprHelper) NewMap(entries ...ast.EntryExpr) ast.Expr {
459 return e.exprFactory.NewMap(e.nextMacroID(), entries)
460}
461
462// NewMapEntry implements the ExprHelper interface method.
463func (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