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
internal/diff: clean up code a bit ahead of dropping deprecated APIs
The diff package uses the deprecated cue.Value.Struct API
to deal with structs, and it's the only non-test piece of code we have
which still does this.
Ahead of doing that refactor, and to wrap my head around the code,
do a few small simplifications and tweaks first:
* xMap only needs to track the presence of fields by selector in x
* yMap using int makes the code below more consistent
* use tighter variable scopes where possible
* slightly reduce verbosity elsewhere where it makes sense
Signed-off-by: Daniel Martí <[email protected]>
Change-Id: I95603e6760ebf6ea777434c2dcfd79f769fe34d4
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1202084
Reviewed-by: Roger Peppe <[email protected]>
TryBot-Result: CUEcueckoo <[email protected]>
Unity-Result: CUE porcuepine <[email protected]>
0 commit comments