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

Function AstToParsedExpr

common/ast_proto.cc:483–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481}
482
483absl::Status AstToParsedExpr(const Ast& ast,
484 cel::expr::ParsedExpr* absl_nonnull out) {
485 ParsedExprPb& parsed_expr = *out;
486 CEL_RETURN_IF_ERROR(ExprToProto(ast.root_expr(), parsed_expr.mutable_expr()));
487 CEL_RETURN_IF_ERROR(ast_internal::SourceInfoToProto(
488 ast.source_info(), parsed_expr.mutable_source_info()));
489
490 return absl::OkStatus();
491}
492
493absl::StatusOr<std::unique_ptr<Ast>> CreateAstFromCheckedExpr(
494 const CheckedExprPb& checked_expr) {

Callers 3

TESTFunction · 0.85
ParseToProtoMethod · 0.85
TEST_PFunction · 0.85

Calls 3

ExprToProtoFunction · 0.85
SourceInfoToProtoFunction · 0.85
source_infoMethod · 0.80

Tested by 3

TESTFunction · 0.68
ParseToProtoMethod · 0.68
TEST_PFunction · 0.68