-
Notifications
You must be signed in to change notification settings - Fork 347
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously we fixed sliders in each 'possibly changed' region. This meant that we couldn't fix sliders that needed to move outside the region. The most common case was code of the form `foo, bar, baz` where `, baz` was unchanged but we wanted to slide to `,`. We now call `fix_all_sliders` for the toplevel tree on both sides. This required some minor changes to the slider logic, as the unchanged/novel regions could occur at any level of the tree. (It was probably also the case that we were missing slider opportunities previously, because we terminated as soon as we found an outer slider for the nested case.) This change has no performance impact, probably because tree diffing is vastly more expensive (O(N^2)) than sliders (O(N)). Fixes #327
- Loading branch information
Showing
5 changed files
with
32 additions
and
15 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[ | ||
"one", | ||
"two", | ||
"three" | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[ | ||
"one", | ||
"novel-1", | ||
"two", | ||
"novel-2", | ||
"three" | ||
] |
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
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