MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / SelectExprToProto

Method SelectExprToProto

common/ast/expr_proto.cc:118–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116 }
117
118 absl::Status SelectExprToProto(const Expr& expr,
119 const SelectExpr& select_expr,
120 ExprProto* absl_nonnull proto) {
121 proto->Clear();
122 auto* select_proto = proto->mutable_select_expr();
123 proto->set_id(expr.id());
124 if (select_expr.has_operand()) {
125 Push(select_expr.operand(), select_proto->mutable_operand());
126 }
127 select_proto->set_field(select_expr.field());
128 select_proto->set_test_only(select_expr.test_only());
129 return absl::OkStatus();
130 }
131
132 absl::Status CallExprToProto(const Expr& expr, const CallExpr& call_expr,
133 ExprProto* absl_nonnull proto) {

Callers

nothing calls this directly

Calls 8

has_operandMethod · 0.80
set_fieldMethod · 0.80
set_test_onlyMethod · 0.80
test_onlyMethod · 0.80
ClearMethod · 0.45
set_idMethod · 0.45
idMethod · 0.45
fieldMethod · 0.45

Tested by

no test coverage detected