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

Fix postfix templates regarding for loops to be consistent with index #300

Merged
merged 1 commit into from
Oct 18, 2022

Conversation

jjohnstn
Copy link
Contributor

What it does

Makes the for, fori, forr postfix loops use just one variable name for the indexing instead of mixing generated name and i.

How to test

Create a method that passes an array of String[] args
Type args.fori and do postfix completion. The name used for the index should be the same as the variable used in the test of
the forloop.

Author checklist

- use ${index} in templates everywhere the index is accessed
- fixes eclipse-jdt#299
@jjohnstn jjohnstn merged commit dc995e7 into eclipse-jdt:master Oct 18, 2022
@jjohnstn jjohnstn deleted the forpostfix branch October 18, 2022 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

result of fori postfix is strange
1 participant