Skip to content
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

Add visitModifier() to base JavaVisitor #4562

Merged
merged 3 commits into from
Oct 11, 2024
Merged

Conversation

macsux
Copy link
Contributor

@macsux macsux commented Oct 9, 2024

What's changed?

Allows Modifier LST to be visited

What's your motivation?

Consistency and resolve issues with remoting to other langugages

@@ -66,14 +66,15 @@ public TreeVisitor<?, ExecutionContext> getVisitor() {
}

@Override
protected void visitModifier(J.Modifier modifier, PrintOutputCapture<ExecutionContext> p) {
public J visitModifier(J.Modifier modifier, PrintOutputCapture<ExecutionContext> p) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect that this method can now probably be entirely removed, as it will be covered by the visit() method now.

@sambsnyd sambsnyd merged commit 00e4792 into openrewrite:main Oct 11, 2024
2 checks passed
@sambsnyd
Copy link
Member

Thanks @macsux !

@knutwannheden knutwannheden changed the title Add withModifier to base java visitors Add visitModifier() to base JavaVisitor Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants