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 conversion for list-modifying expressions #5052

Merged
merged 2 commits into from
Oct 20, 2022

Conversation

TPGamesNL
Copy link
Member

Description

Implement getConvertedExpression properly for reversed, shuffled and sorted list expression.

Example of what this changes will fix:
set {_l::*} to length of (reversed (1 and 2))
shouldn't parse (length expr gets the length of a string), without this PR it parses just fine, since the conversion happens on the list-modifying expression instead of the list within.


Target Minecraft Versions:
Requirements:
Related Issues: #5045 (comment) (non-fixing)

@TPGamesNL TPGamesNL added the enhancement Feature request, an issue about something that could be improved, or a PR improving something. label Aug 26, 2022
@TheLimeGlass TheLimeGlass merged commit c52f055 into SkriptLang:master Oct 20, 2022
TheLimeGlass pushed a commit that referenced this pull request Oct 20, 2022
Add getConvertedExpression for list-modifying expressions

(cherry picked from commit c52f055)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature request, an issue about something that could be improved, or a PR improving something.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants