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

fixed codegen for nested resource loops with complex parent index expressions #6374

Merged
merged 1 commit into from
Apr 7, 2022

Conversation

majastrz
Copy link
Member

Loops involving nested resources that index into parent symbols using non-trivial expressions are now generated correctly. This fixes #6075.

@majastrz majastrz changed the title fixed codegen for nested loops with complex index expressions fixed codegen for nested resource loops with complex index expressions Mar 31, 2022
@majastrz majastrz changed the title fixed codegen for nested resource loops with complex index expressions fixed codegen for nested resource loops with complex parent index expressions Mar 31, 2022
@majastrz majastrz marked this pull request as ready for review March 31, 2022 05:52
Copy link
Contributor

@shenglol shenglol left a comment

Choose a reason for hiding this comment

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

:shipit:

}
}

public class SyntaxReplacer: SyntaxRewriteVisitor
Copy link
Contributor

Choose a reason for hiding this comment

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

We'll need to remove this.

Copy link
Member Author

Choose a reason for hiding this comment

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

Will remove in separate PR.

@majastrz majastrz merged commit 76cac38 into main Apr 7, 2022
@majastrz majastrz deleted the majastrz/loop-thing branch April 7, 2022 20:50
@majastrz majastrz mentioned this pull request Apr 8, 2022
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.

multiple resource loops creates an out of bounds error
2 participants