(e ast.Expr, size *entrySizeEstimate)
| 968 | } |
| 969 | |
| 970 | func (c *coster) setEntrySize(e ast.Expr, size *entrySizeEstimate) { |
| 971 | if size == nil { |
| 972 | return |
| 973 | } |
| 974 | c.computedEntrySizes[e.ID()] = *size |
| 975 | } |
| 976 | |
| 977 | func (c *coster) computeEntrySize(e ast.Expr) *entrySizeEstimate { |
| 978 | if sz, found := c.computedEntrySizes[e.ID()]; found { |
no test coverage detected