You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]>
0 commit comments