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

Method SelectExprFromProto

common/ast/expr_proto.cc:337–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335 }
336
337 absl::Status SelectExprFromProto(const ExprProto& proto,
338 const ExprProto::Select& select_proto,
339 Expr& expr) {
340 expr.Clear();
341 expr.set_id(proto.id());
342 auto& select_expr = expr.mutable_select_expr();
343 if (select_proto.has_operand()) {
344 Push(select_proto.operand(), select_expr.mutable_operand());
345 }
346 select_expr.set_field(select_proto.field());
347 select_expr.set_test_only(select_proto.test_only());
348 return absl::OkStatus();
349 }
350
351 absl::Status CallExprFromProto(const ExprProto& proto,
352 const ExprProto::Call& call_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