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

Function FunctionDeclFromV1Alpha1Proto

common/decl_proto_v1alpha1.cc:42–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42absl::StatusOr<FunctionDecl> FunctionDeclFromV1Alpha1Proto(
43 absl::string_view name,
44 const google::api::expr::v1alpha1::Decl::FunctionDecl& function,
45 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,
46 google::protobuf::Arena* absl_nonnull arena) {
47 cel::expr::Decl::FunctionDecl unversioned;
48 if (!unversioned.MergeFromString(function.SerializeAsString())) {
49 return absl::InternalError(
50 "failed to convert versioned to unversioned Decl proto");
51 }
52 return FunctionDeclFromProto(name, unversioned, descriptor_pool, arena);
53}
54
55absl::StatusOr<absl::variant<VariableDecl, FunctionDecl>> DeclFromV1Alpha1Proto(
56 const google::api::expr::v1alpha1::Decl& decl,

Callers

nothing calls this directly

Calls 1

FunctionDeclFromProtoFunction · 0.85

Tested by

no test coverage detected