Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #6058 Fix
Tokens::insertSlices
not moving around all affected t…
…okens (paulbalandan, SpacePossum) This PR was squashed before being merged into the master branch (closes #6058). Discussion ---------- Fix `Tokens::insertSlices` not moving around all affected tokens While working on #5953 in refactoring to call `insertSlices` once, I stumbled into a problem where parse error would appear after fixing. After digging into it more, I found out that the culprit is in the `insertSlices` method itself. If there are multiple slices to be inserted in an index and this is repeated in other indexes, there exists a "hole" left in the moving around of tokens. This causes the unmoved tokens to be inadvertently replaced by other else possibly resulting to parse errors after. Commits ------- fbac555 Fix `Tokens::insertSlices` not moving around all affected tokens
- Loading branch information
Showing
2 changed files
with
199 additions
and
10 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