Exec implements the InterpretableV2 interface method.
(frame *ExecutionFrame)
| 1444 | |
| 1445 | // Exec implements the InterpretableV2 interface method. |
| 1446 | func (e *evalSetMembership) Exec(frame *ExecutionFrame) ref.Val { |
| 1447 | val := e.arg.Exec(frame) |
| 1448 | if types.IsUnknownOrError(val) { |
| 1449 | return val |
| 1450 | } |
| 1451 | if ret, found := e.valueSet[val]; found { |
| 1452 | return ret |
| 1453 | } |
| 1454 | return types.False |
| 1455 | } |
| 1456 | |
| 1457 | // Eval implements the Interpretable interface method. |
| 1458 | func (e *evalSetMembership) Eval(ctx Activation) ref.Val { |
nothing calls this directly
no test coverage detected