Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apply GCPair to TreeNode, TextNode #819
Apply GCPair to TreeNode, TextNode #819
Changes from 8 commits
d851b4a
31d6359
22678e3
dfc74f7
a5ebd2f
5750dbe
9bb9a91
4eefe91
34efeea
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tip
Codebase Verification
The logic in the
canDelete
method insrc/document/crdt/rga_tree_split.ts
appears to be different from the one insrc/document/crdt/tree.ts
. Specifically, thejustRemoved
flag is used in the former but not in the latter. This discrepancy suggests that thejustRemoved
flag might be incorrectly used or unnecessary.src/document/crdt/rga_tree_split.ts
:src/document/crdt/tree.ts
:The
justRemoved
flag insrc/document/crdt/rga_tree_split.ts
might be causing unintended behavior. Please review the necessity of this flag and consider aligning the logic with the implementation insrc/document/crdt/tree.ts
.src/document/crdt/rga_tree_split.ts
: Review the use ofjustRemoved
in thecanDelete
method.Analysis chain
Clarify the logic in
canDelete
method.The logic in
canDelete
seems to be using ajustRemoved
flag incorrectly. Please verify if this is intended or if there's a better way to handle the deletion logic.Scripts Executed
The following scripts were executed for the analysis:
Script:
Length of output: 67
Script:
Length of output: 577
Script:
Length of output: 1818