| 1865 | } |
| 1866 | |
| 1867 | absl::StatusOr<VerboseParsedExpr> EnrichedParse( |
| 1868 | absl::string_view expression, const std::vector<Macro>& macros, |
| 1869 | absl::string_view description, const ParserOptions& options) { |
| 1870 | CEL_ASSIGN_OR_RETURN(auto source, |
| 1871 | cel::NewSource(expression, std::string(description))); |
| 1872 | cel::MacroRegistry macro_registry; |
| 1873 | CEL_RETURN_IF_ERROR(macro_registry.RegisterMacros(macros)); |
| 1874 | return EnrichedParse(*source, macro_registry, options); |
| 1875 | } |
| 1876 | |
| 1877 | absl::StatusOr<VerboseParsedExpr> EnrichedParse( |
| 1878 | const cel::Source& source, const cel::MacroRegistry& registry, |