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

Method NewMapEntry

parser/helper.go:426–428  ·  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

424
425// NewMapEntry implements the ExprHelper interface method.
426func (e *exprHelper) NewMapEntry(key ast.Expr, val ast.Expr, optional bool) ast.EntryExpr {
427 return e.exprFactory.NewMapEntry(e.nextMacroID(), key, val, optional)
428}
429
430// NewStruct implements the ExprHelper interface method.
431func (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