CreateStruct records struct/object construction cost.
(id int64, res ref.Val)
| 201 | |
| 202 | // CreateStruct records struct/object construction cost. |
| 203 | func (c *Tracker) CreateStruct(id int64, res ref.Val) { |
| 204 | c.cost = SafeAdd(c.cost, StructCreateBaseCost) |
| 205 | c.checkLimit() |
| 206 | } |
| 207 | |
| 208 | // EvalAttribute records attribute resolution cost (ident / select). |
| 209 | func (c *Tracker) EvalAttribute(id int64, isTestOnly bool, res ref.Val) { |