ForEachCmpOp iterates the ops in the set.
(f func(op *CmpOp) error)
| 1559 | |
| 1560 | // ForEachCmpOp iterates the ops in the set. |
| 1561 | func (o *CmpOpOverloads) ForEachCmpOp(f func(op *CmpOp) error) error { |
| 1562 | if o == nil { |
| 1563 | return nil |
| 1564 | } |
| 1565 | for _, ol := range o.overloads { |
| 1566 | if err := f(ol); err != nil { |
| 1567 | return iterutil.Map(err) |
| 1568 | } |
| 1569 | } |
| 1570 | return nil |
| 1571 | } |
| 1572 | |
| 1573 | func makeCmpOpOverload( |
| 1574 | op treecmp.ComparisonOperatorSymbol, a, b *types.T, calledOnNullInput bool, v volatility.V, |