CreateList records list literal construction cost.
(id int64, res ref.Val)
| 189 | |
| 190 | // CreateList records list literal construction cost. |
| 191 | func (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. |
| 197 | func (c *Tracker) CreateMap(id int64, res ref.Val) { |