-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Refactor commit nodes (#892)
* Remove headsetScanNode Node no longer really does anything and only serves to misdirect and confuse * Make cid an option-type As well as being clearer IMO in it's own right, this will make life easier shortly * Use parsed.Cid over duplicate prop * Dont store iteration state Is much easier if currentCid stays local. Had to add a couple of checks for when cid is provided as otherwise it starts to take a different (and incorrect) code-path, will likely be removed/optimized shortly. * Remove legacy comment * Use parsed.Depth over duplicate prop * Use parsed.DocKey over duplicate prop * Use parsed.Field over duplicate prop Also fixes an explain bug where it was incorrectly reporting field as 'C' * Simplify commit node constructor * Set currentValue only when valid A bit of a nitpick, but it is also now located next to where it is used/returned * Replace legacy comment with correct comment * Add cid related comment * Remove type-unsafe list with slice magic * Remove odd comment * Remove commitSelectNode Doesnt actually do anything anymore * Remove commitSelectTopNode It no longer served a purpose
- Loading branch information
1 parent
2ee445e
commit 4202950
Showing
12 changed files
with
311 additions
and
579 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
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
Oops, something went wrong.