Skip to content

Put parenthesis changes back - #4819

Merged
jevanlingen merged 25 commits into
mainfrom
put-parenthesis-changes-back
Dec 31, 2024
Merged

jevanlingen merged 25 commits into
mainfrom
put-parenthesis-changes-back

Conversation

@jevanlingen

@jevanlingen jevanlingen commented Dec 27, 2024 •

Copy link
Copy Markdown
Contributor

What's changed?

  • Rereverted: parenthesis changes
  • Fix: closing parentheses in determineParenthesisLevel not taking into account (like new ObjectX().objectY.someClosure {}
  • Fix: for-loop could not handle modifiers like for(def x : ["A", "B"])
  • Improvement: Support for varargs

What's your motivation?

Out of scope

When I added the real-live-examples, I also found out we do not support other things:

As these things are possible not easy fixes, I kept the unit tests, but marked them as not-supported-yet. Follow up PRs should fix these.

Checklist

  • I've added unit tests to cover both positive and negative cases
  • I've read and applied the recipe conventions and best practices
  • I've used the IntelliJ IDEA auto-formatter on affected file

@jevanlingen jevanlingen self-assigned this Dec 27, 2024
@jevanlingen
jevanlingen marked this pull request as ready for review December 30, 2024 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants