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

Method CreateList

common/cost/tracker.go:191–194  ·  view source on GitHub ↗

CreateList records list literal construction cost.

(id int64, res ref.Val)

Source from the content-addressed store, hash-verified

189
190// CreateList records list literal construction cost.
191func (c *Tracker) CreateList(id int64, res ref.Val) {
192 c.cost = SafeAdd(c.cost, ListCreateBaseCost)
193 c.checkLimit()
194}
195
196// CreateMap records map literal construction cost.
197func (c *Tracker) CreateMap(id int64, res ref.Val) {

Callers 7

ExecMethod · 0.80
trackCostCreateListFunction · 0.80

Calls 2

checkLimitMethod · 0.95
SafeAddFunction · 0.85