(e ast.Expr)
| 593 | } |
| 594 | |
| 595 | func (c *coster) maybeUnwrapDynCall(e ast.Expr) *CostEstimate { |
| 596 | call := e.AsCall() |
| 597 | if call.FunctionName() != "dyn" { |
| 598 | return nil |
| 599 | } |
| 600 | arg := call.Args()[0] |
| 601 | argCost := c.cost(arg) |
| 602 | c.copySizeEstimates(e, arg) |
| 603 | callCost := FixedCostEstimate(1).Add(argCost) |
| 604 | return &callCost |
| 605 | } |
| 606 | |
| 607 | func (c *coster) costCreateList(e ast.Expr) CostEstimate { |
| 608 | create := e.AsList() |
no test coverage detected