-
Notifications
You must be signed in to change notification settings - Fork 356
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
Handle erroneous nodes in open rewrite #4412
Merged
Merged
Changes from 21 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
997b797
Handle erroneous nodes in a tree
vudayani 8969dc5
Add visitErroneous to all java parser visitors
vudayani 3414438
Override the visitVariable to handle erroneous identifier names set b…
vudayani da52622
retain name and suffix for erroneous varDecl
vudayani db8e069
override the visitVariable to handle error identifiers in all java pa…
vudayani 79961ad
Remove sysout
jkschneider 7d894bd
Update rewrite-java-test/src/test/java/org/openrewrite/java/JavaParse…
jkschneider 5191acd
Update rewrite-java-test/src/test/java/org/openrewrite/java/JavaParse…
jkschneider ac32851
handle errors in method params, variable declarations, fix tests
vudayani df8fb83
Add missing license headers
timtebeek 5c0dadd
fix compilation error
vudayani a29b0b0
fix compilation error in Java8ParserVisitor
vudayani c393fc0
Apply code suggestions from bot
timtebeek 611d18b
fix cases for statementDelim
vudayani d60543f
fix block statement template generator to handle adding semicolon
vudayani 7754d25
fix ChangeStaticFieldToMethod recipe
vudayani 41420b6
Merge branch 'main' into handle-erroneous-nodes
timtebeek fb22682
Record compiler errors from erroneous LST nodes
BoykoAlex 9951a4b
Merge branch 'main' into handle-erroneous-nodes
timtebeek 1cf92eb
Merge branch 'main' into handle-erroneous-nodes
timtebeek b0af9b9
Merge branch 'main' into handle-erroneous-nodes
timtebeek 078b799
Adjustments for comments
BoykoAlex bbdef52
Merge branch 'main' into handle-erroneous-nodes
BoykoAlex b1bb87e
Java 17 parser adjustment alos in 8, 11 and 21
BoykoAlex 4461dce
Merge branch 'main' into handle-erroneous-nodes
timtebeek c8afbc5
Merge branch 'main' into handle-erroneous-nodes
timtebeek 8a1d9c9
Add `FindCompileErrorsTest` & move away from deprecated `print()`
timtebeek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Oops, something went wrong.
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.
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.
This part is unclear to me. Why advance the cursor a single character? Can we add a comment explaining this? Is there a specific test case which would demonstrate this?
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'd have to dig into this to recall why this was done. Hopefully a test would fail if I comment this out. Will get back on this.
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.
Added a comment