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
cue/ast: add WalkVisitor to share with cue/ast/astutil
We have two copies of this walk code between the two packages.
Even though we have never exposed the APIs to end users before,
in practice the interface has been closely tied to their implementations
for some time now, so it seems fine to settle for it for now.
It's likely that once iterators in Go become widespread,
we will want to revisit what better APIs we want to expose here.
Adding WalkVisitor shouldn't preclude that, particularly since "Walk"
is not really a verb that one would use for an iterator API anyway.
That is being tracked in https://cuelang.org/issue/2953.
Signed-off-by: Daniel Martí <[email protected]>
Change-Id: I5a6b7f2f12bb95a0850de86fbc2374cff480bdd6
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1194006
TryBot-Result: CUEcueckoo <[email protected]>
Unity-Result: CUE porcuepine <[email protected]>
Reviewed-by: Roger Peppe <[email protected]>
0 commit comments