Skip to content

Commit e3e7b8d

Browse files
l46kokcopybara-github
authored andcommitted
Update CSE document and remove outdated information
PiperOrigin-RevId: 996149830
1 parent fa6b4b0 commit e3e7b8d

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

‎optimizer/src/main/java/dev/cel/optimizer/optimizers/SubexpressionOptimizer.java‎

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
* Performs Common Subexpression Elimination.
7676
*
7777
* <pre>
78-
* Subexpressions are extracted into `cel.bind` calls. For example, the expression below:
78+
* Subexpressions are extracted into `cel.@block` calls. For example, the expression below:
7979
*
8080
* {@code
8181
* message.child.text_map[x].startsWith("hello") && message.child.text_map[x].endsWith("world")
@@ -84,14 +84,8 @@
8484
* will be optimized into the following form:
8585
*
8686
* {@code
87-
* cel.bind(@r0, message.child.text_map[x],
88-
* @r0.startsWith("hello") && @r0.endsWith("world"))
89-
* }
90-
*
91-
* Or, using the equivalent form of cel.@block (requires special runtime support):
92-
* {@code
93-
* cel.block([message.child.text_map[x]],
94-
* @index0.startsWith("hello") && @index1.endsWith("world"))
87+
* cel.@block([message.child.text_map[x]],
88+
* @index0.startsWith("hello") && @index0.endsWith("world"))
9589
* }
9690
* </pre>
9791
*

0 commit comments

Comments
 (0)