You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm always interested, but hard to find time. I may give this a go, but hoping it's easy for your parser gurus.. If I can do something quickly, I'll do it!
The text was updated successfully, but these errors were encountered:
Perhaps @jevanlingen can provide some guidance here; his solved quite a few Groovy parser issues lately, and this seems like a case of implied parenthesis in an annotation, although it could be ambiguous.
Based on glancing at #4832, there is no doubt @jevanlingen is better qualified than me:) But I think the issue is not with parens, it just doesn't do anything with annotations in the case I'm describing (annotations on top/script-level declarations).
crankydillo
changed the title
Groovy script: annotations on script-level variable declarations does not parse correctly
Groovy script: annotations on script-level variable declarations do not parse correctly
Jan 12, 2025
This test added to
rewrite-groovy/../AnnotationsTest.java
will fail, but AFAIK should successfully parse.Debugging points a finger at
GroovyParserVisitor#RewriteGroovyVisitor#visitDeclarationExpression
.What version of OpenRewrite are you using?
Currently running the test above on your
main
branch, but we are using8.40.2
.Are you interested in contributing a fix to OpenRewrite?
I'm always interested, but hard to find time. I may give this a go, but hoping it's easy for your parser gurus.. If I can do something quickly, I'll do it!
The text was updated successfully, but these errors were encountered: