Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools/fix: correct the ast walker so sub-expressions get fixed
Originally, the ast walker in fix was using the "before" function. But this would mean recursion would stop as soon as it does any replacement. This means it wouldn't work for nested expressions. By simply switching to the "after" function, we ensure we don't do any replacement until we've bottomed out in the AST. Signed-off-by: Matthew Sackman <[email protected]> Change-Id: I5372b319429f48c222b2a8b4a6507873f19250c1 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1200495 Unity-Result: CUE porcuepine <[email protected]> Reviewed-by: Daniel Martí <[email protected]> TryBot-Result: CUEcueckoo <[email protected]>
- Loading branch information