(e ast.Expr, size *SizeEstimate)
| 914 | } |
| 915 | |
| 916 | func (c *coster) setSize(e ast.Expr, size *SizeEstimate) { |
| 917 | if size == nil { |
| 918 | return |
| 919 | } |
| 920 | // Store the computed size with the expression |
| 921 | c.computedSizes[e.ID()] = *size |
| 922 | } |
| 923 | |
| 924 | func (c *coster) sizeOrUnknown(node any) SizeEstimate { |
| 925 | switch v := node.(type) { |
no test coverage detected