Repository navigation
Align peeked token handling with reuse (fixes bug that statements were not reused) - #24
Merged
Merged
Conversation
Keep peeked tokens on the stack unless lexed from text, and track whether a peeked token was popped to preserve reuse. Co-authored-by: Cursor <cursoragent@cursor.com>
Avoid asserting trailing statement reuse when the statement contains the change span, instead of expanding suffix limits. Co-authored-by: Cursor <cursoragent@cursor.com>
Introduce a many-seed statement reuse finder test to mirror the existing token reuse stress case. Co-authored-by: Cursor <cursoragent@cursor.com>
Add a many-seed statement reuse finder for erroneous programs. Co-authored-by: Cursor <cursoragent@cursor.com>
Track and print prefix/suffix statement reuse totals for each incremental change case. Co-authored-by: Cursor <cursoragent@cursor.com>
Skip the debug-only invalid program tree dump and reduce the statement reuse stress test ranges for quicker runs. Co-authored-by: Cursor <cursoragent@cursor.com>
Align PeekTokenCore with non-terminal stack positions and continue trailing statement reuse checks past spanning statements. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Keep peeked tokens on the stack unless lexed from text, and track whether a peeked token was popped to preserve reuse.