-
Notifications
You must be signed in to change notification settings - Fork 319
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
Generate Java assign token more often #830
Conversation
37e4846
to
cc3a3b4
Compare
You need to adapt some expected values of test cases for this PR to pass the build. However, do not adapt the E2E tests yet. |
Kudos, SonarCloud Quality Gate passed! |
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.
I have to do some further tests in order to determine the impact of these changes on real datasets. Marked as changes requested to avoid accidental merging.
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.
Looks good! I tested it thoroughly with real-wold data.
In Java,
i++
is syntactic sugar fori += 1
, which in turn is syntactic sugar fori = i + 1
. Currently, aJ_ASSIGN
token is only generated in the last case, no tokens are generated in the other two cases. This inconsistency can be resolved by also generating aJ_ASSIGN
token for compound assignments and increment/decrement operations.