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

Method newMap

parser/helper.go:100–102  ·  view source on GitHub ↗
(ctx any, entries ...ast.EntryExpr)

Source from the content-addressed store, hash-verified

98}
99
100func (p *parserHelper) newMap(ctx any, entries ...ast.EntryExpr) ast.Expr {
101 return p.exprFactory.NewMap(p.newID(ctx), entries)
102}
103
104func (p *parserHelper) newMapEntry(entryID int64, key ast.Expr, value ast.Expr, optional bool) ast.EntryExpr {
105 return p.exprFactory.NewMapEntry(entryID, key, value, optional)

Callers 1

VisitCreateStructMethod · 0.80

Calls 2

newIDMethod · 0.95
NewMapMethod · 0.65

Tested by

no test coverage detected