| 219 | } |
| 220 | |
| 221 | absl::Status Unparser::VisitSelect(const Expr::Select& expr) { |
| 222 | if (expr.test_only()) { |
| 223 | Print(CelOperator::HAS, kLeftParen); |
| 224 | } |
| 225 | const auto& operand = expr.operand(); |
| 226 | bool nested = !expr.test_only() && IsBinaryOrTernaryOperator(operand); |
| 227 | CEL_RETURN_IF_ERROR(VisitMaybeNested(operand, nested)); |
| 228 | Print(kDot, FormatField(expr.field())); |
| 229 | if (expr.test_only()) { |
| 230 | Print(kRightParen); |
| 231 | } |
| 232 | return absl::OkStatus(); |
| 233 | } |
| 234 | |
| 235 | absl::Status Unparser::VisitOptSelect(const Expr::Call& expr) { |
| 236 | if (expr.args_size() != 2 || !expr.args()[1].has_const_expr() || |
nothing calls this directly
no test coverage detected