forked from google/cel-go
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prune recursion fixes for nested logic (google#677)
In expressions where the logic is nested and the residual state would result in the production of a constant value in the expression, ensure that the intermediate state for the expression is updated to reflect the constant value. Also, ensure that special cases of pruning for logical operators happen after argument pruning has happened to ensure that the prune steps are properly recursive.
- Loading branch information
1 parent
3d2e878
commit 68d7302
Showing
2 changed files
with
122 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters