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

Method NewMapEntry

parser/helper.go:422–424  ·  view source on GitHub ↗

NewMapEntry implements the ExprHelper interface method.

(key ast.Expr, val ast.Expr, optional bool)

Source from the content-addressed store, hash-verified

420
421// NewMapEntry implements the ExprHelper interface method.
422func (e *exprHelper) NewMapEntry(key ast.Expr, val ast.Expr, optional bool) ast.EntryExpr {
423 return e.exprFactory.NewMapEntry(e.nextMacroID(), key, val, optional)
424}
425
426// NewStruct implements the ExprHelper interface method.
427func (e *exprHelper) NewStruct(typeName string, fieldInits ...ast.EntryExpr) ast.Expr {

Callers

nothing calls this directly

Calls 2

nextMacroIDMethod · 0.95
NewMapEntryMethod · 0.65

Tested by

no test coverage detected