| 112 | } |
| 113 | |
| 114 | struct ComparisonVisitor { |
| 115 | explicit ComparisonVisitor(CelValue rhs) : rhs(rhs) {} |
| 116 | template <typename T> |
| 117 | int operator()(T lhs_value) { |
| 118 | T rhs_value; |
| 119 | if (!rhs.GetValue(&rhs_value)) { |
| 120 | return ComparisonImpl(CelValue::Type(CelValue::IndexOf<T>::value), |
| 121 | rhs.type()); |
| 122 | } |
| 123 | return ComparisonImpl(lhs_value, rhs_value); |
| 124 | } |
| 125 | |
| 126 | CelValue rhs; |
| 127 | }; |
| 128 | |
| 129 | } // namespace |
| 130 |
no outgoing calls
no test coverage detected