Exec implements the InterpretableV2 interface method.
(frame *ExecutionFrame)
| 481 | |
| 482 | // Exec implements the InterpretableV2 interface method. |
| 483 | func (ne *evalNe) Exec(frame *ExecutionFrame) ref.Val { |
| 484 | lVal := ne.lhs.Exec(frame) |
| 485 | rVal := ne.rhs.Exec(frame) |
| 486 | if types.IsUnknownOrError(lVal) { |
| 487 | return lVal |
| 488 | } |
| 489 | if types.IsUnknownOrError(rVal) { |
| 490 | return rVal |
| 491 | } |
| 492 | return types.Bool(types.Equal(lVal, rVal) != types.True) |
| 493 | } |
| 494 | |
| 495 | // Eval implements the Interpretable interface method. |
| 496 | func (ne *evalNe) Eval(ctx Activation) ref.Val { |
no test coverage detected