Skip to content

Commit 3ca0f61

Browse files
l46kokcopybara-github
authored andcommitted
Internal Changes
PiperOrigin-RevId: 817364249
1 parent c9f7e9a commit 3ca0f61

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

bundle/src/main/java/dev/cel/bundle/CelEnvironment.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ public abstract class CelEnvironment {
7070
"optional", CanonicalCelExtension.OPTIONAL,
7171
"protos", CanonicalCelExtension.PROTOS,
7272
"sets", CanonicalCelExtension.SETS,
73-
"strings", CanonicalCelExtension.STRINGS);
73+
"strings", CanonicalCelExtension.STRINGS,
74+
"comprehensions", CanonicalCelExtension.COMPREHENSIONS);
7475

7576
/** Environment source in textual format (ex: textproto, YAML). */
7677
public abstract Optional<Source> source();
@@ -687,8 +688,8 @@ enum CanonicalCelExtension {
687688
BINDINGS((options, version) -> CelExtensions.bindings()),
688689
PROTOS((options, version) -> CelExtensions.protos()),
689690
ENCODERS(
690-
(options, version) -> CelExtensions.encoders(),
691-
(options, version) -> CelExtensions.encoders()),
691+
(options, version) -> CelExtensions.encoders(options),
692+
(options, version) -> CelExtensions.encoders(options)),
692693
MATH(
693694
(options, version) -> CelExtensions.math(options, version),
694695
(options, version) -> CelExtensions.math(options, version)),
@@ -701,7 +702,10 @@ enum CanonicalCelExtension {
701702
SETS(
702703
(options, version) -> CelExtensions.sets(options),
703704
(options, version) -> CelExtensions.sets(options)),
704-
LISTS((options, version) -> CelExtensions.lists(), (options, version) -> CelExtensions.lists());
705+
LISTS((options, version) -> CelExtensions.lists(), (options, version) -> CelExtensions.lists()),
706+
COMPREHENSIONS(
707+
(options, version) -> CelExtensions.comprehensions(),
708+
(options, version) -> CelExtensions.comprehensions());
705709

706710
@SuppressWarnings("ImmutableEnumChecker")
707711
private final CompilerExtensionProvider compilerExtensionProvider;

0 commit comments

Comments
 (0)