ForEachBinOp iterates the BinOps in the set.
(f func(op *BinOp) error)
| 496 | |
| 497 | // ForEachBinOp iterates the BinOps in the set. |
| 498 | func (o *BinOpOverloads) ForEachBinOp(f func(op *BinOp) error) error { |
| 499 | if o == nil { |
| 500 | return nil |
| 501 | } |
| 502 | for _, ol := range o.overloads { |
| 503 | if err := f(ol); err != nil { |
| 504 | return iterutil.Map(err) |
| 505 | } |
| 506 | } |
| 507 | return nil |
| 508 | } |
| 509 | |
| 510 | func (o *BinOpOverloads) len() int { return len(o.overloads) } |
| 511 | func (o *BinOpOverloads) get(i int) overloadImpl { return o.overloads[i] } |
no test coverage detected