forked from open-policy-agent/opa
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor save set updating to use ast.Walk
In 6f9ed62 we fixed an issue in partial eval that was causing vars embedded inside composites to not be added to the save set when they should have been. This change simply refactors that fix to use ast.Walk and rely on the same logic in both saveUnify and saveCall. Note, the plug call on the var terms has been removed as it's not needed since we are already plugging terms (or applying) when checking if terms are contained in the save set. Signed-off-by: Torin Sandall <torinsandall@gmail.com>
- Loading branch information
Showing
1 changed file
with
18 additions
and
42 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