| 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)); |
nothing calls this directly
no test coverage detected