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

Function VariableDeclFromProto

common/decl_proto.cc:35–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33namespace cel {
34
35absl::StatusOr<VariableDecl> VariableDeclFromProto(
36 absl::string_view name, const cel::expr::Decl::IdentDecl& variable,
37 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,
38 google::protobuf::Arena* absl_nonnull arena) {
39 CEL_ASSIGN_OR_RETURN(Type type,
40 TypeFromProto(variable.type(), descriptor_pool, arena));
41 return cel::MakeVariableDecl(std::string(name), type);
42}
43
44absl::StatusOr<FunctionDecl> FunctionDeclFromProto(
45 absl::string_view name,

Callers 2

DeclFromProtoFunction · 0.85

Calls 1

MakeVariableDeclFunction · 0.85

Tested by

no test coverage detected