| 22 | ) |
| 23 | |
| 24 | type equality struct { |
| 25 | Left Node |
| 26 | Right Node |
| 27 | |
| 28 | // Not just inverses the result of the comparison. We could implement this |
| 29 | // as a Not node wrapping the equality, but this is more efficient. |
| 30 | Not bool |
| 31 | } |
| 32 | |
| 33 | func Equality(notEquals bool, a, b Node) BooleanNode { |
| 34 | return equality{ |
nothing calls this directly
no outgoing calls
no test coverage detected