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

Function VariableDeclFromV1Alpha1Proto

common/decl_proto_v1alpha1.cc:29–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27namespace cel {
28
29absl::StatusOr<VariableDecl> VariableDeclFromV1Alpha1Proto(
30 absl::string_view name,
31 const google::api::expr::v1alpha1::Decl::IdentDecl& variable,
32 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,
33 google::protobuf::Arena* absl_nonnull arena) {
34 cel::expr::Decl::IdentDecl unversioned;
35 if (!unversioned.MergeFromString(variable.SerializeAsString())) {
36 return absl::InternalError(
37 "failed to convert versioned to unversioned Decl proto");
38 }
39 return VariableDeclFromProto(name, unversioned, descriptor_pool, arena);
40}
41
42absl::StatusOr<FunctionDecl> FunctionDeclFromV1Alpha1Proto(
43 absl::string_view name,

Callers

nothing calls this directly

Calls 1

VariableDeclFromProtoFunction · 0.85

Tested by

no test coverage detected