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

Method ParseToProto

common/ast_proto_test.cc:821–829  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

819 }
820
821 absl::StatusOr<ParsedExpr> ParseToProto(absl::string_view expr) {
822 CEL_ASSIGN_OR_RETURN(auto source, cel::NewSource(expr));
823
824 CEL_ASSIGN_OR_RETURN(auto result, compiler_->GetParser().Parse(*source));
825 ParsedExpr parsed_expr;
826
827 CEL_RETURN_IF_ERROR(AstToParsedExpr(*result, &parsed_expr));
828 return parsed_expr;
829 }
830
831 absl::StatusOr<CheckedExpr> CompileToProto(absl::string_view expr) {
832 CEL_ASSIGN_OR_RETURN(auto result, compiler_->Compile(expr));

Callers

nothing calls this directly

Calls 1

AstToParsedExprFunction · 0.85

Tested by

no test coverage detected