Skip to content

Go: clean up Go's copy of ForEachControl to mimic the Java one#7944

Merged
greg-at-moderne merged 1 commit into
mainfrom
greg-foreach-control-fields
Jun 9, 2026
Merged

Go: clean up Go's copy of ForEachControl to mimic the Java one#7944
greg-at-moderne merged 1 commit into
mainfrom
greg-foreach-control-fields

Conversation

@greg-at-moderne

Copy link
Copy Markdown
Contributor

What's changed?

A clean-up of java.ForEachControl in rewrite-go.
It introduced extra fields which we didn't have in Java.
Also removing AssignOp as it turned out not to be needed anymore.

What's your motivation?

The assymetry in LST trees makes the parsing store the constructs in accidental LST structure and it doesn't work well. As evidenced over RPC recipe calls.

@greg-at-moderne greg-at-moderne self-assigned this Jun 9, 2026
@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite Jun 9, 2026
@greg-at-moderne greg-at-moderne marked this pull request as ready for review June 9, 2026 06:56
@greg-at-moderne greg-at-moderne merged commit 254171f into main Jun 9, 2026
1 check passed
@greg-at-moderne greg-at-moderne deleted the greg-foreach-control-fields branch June 9, 2026 06:56
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant