Registers the macros defined by the comprehension v2 extension.
| 545 | |
| 546 | // Registers the macros defined by the comprehension v2 extension. |
| 547 | absl::Status RegisterComprehensionsV2Macros(MacroRegistry& registry, |
| 548 | const ParserOptions&) { |
| 549 | for (const Macro& macro : AllMacros()) { |
| 550 | CEL_RETURN_IF_ERROR(registry.RegisterMacro(macro)); |
| 551 | } |
| 552 | |
| 553 | return absl::OkStatus(); |
| 554 | } |
| 555 | |
| 556 | absl::Status RegisterComprehensionsV2Macros(ParserBuilder& parser_builder) { |
| 557 | for (const Macro& macro : AllMacros()) { |