Skip to content

EffChange Cleanup #7915

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

Merged

Conversation

APickledWalrus
Copy link
Member

Problem

EffChange is outdated: filled with oddly structured code, duplicated behavior, and confusing variable names. It is hard to understand what is going on in the class and follow the behavior.

Solution

I have cleaned up and rewritten the class. I've expanded variable names, added documentation, optimized behavior, and improved error messages.

Testing Completed

No additional tests were added. EffChange is widely used across the tests, and they continue to pass. I am not sure if it is worth adding an EffChange test (it would depend on other syntaxes change implementations).

Supporting Information

Sort of depends on #7891 (I've copied the Expression#canReturn changes)


Completes: none
Related: none

@APickledWalrus APickledWalrus requested a review from a team as a code owner June 3, 2025 20:03
@APickledWalrus APickledWalrus added the enhancement Feature request, an issue about something that could be improved, or a PR improving something. label Jun 3, 2025
@APickledWalrus APickledWalrus requested a review from a team as a code owner June 3, 2025 20:03
@APickledWalrus APickledWalrus requested review from UnderscoreTud and TheMug06 and removed request for a team June 3, 2025 20:03
@skriptlang-automation skriptlang-automation bot added the needs reviews A PR that needs additional reviews label Jun 3, 2025
Copy link
Member

@sovdeeth sovdeeth left a comment

Choose a reason for hiding this comment

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

looks a lot better

@skriptlang-automation skriptlang-automation bot added the feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version. label Jun 6, 2025
@github-project-automation github-project-automation bot moved this from In Review to Awaiting Merge in 2.12 Release Jun 6, 2025
@skriptlang-automation skriptlang-automation bot removed the needs reviews A PR that needs additional reviews label Jun 6, 2025
@Efnilite Efnilite merged commit f82c0f7 into SkriptLang:dev/feature Jun 12, 2025
5 checks passed
@skriptlang-automation skriptlang-automation bot added the completed The issue has been fully resolved and the change will be in the next Skript update. label Jun 12, 2025
@github-project-automation github-project-automation bot moved this from Awaiting Merge to Done in 2.12 Release Jun 12, 2025
@skriptlang-automation skriptlang-automation bot removed the feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version. label Jun 12, 2025
@APickledWalrus APickledWalrus deleted the feature/eff-change-rewrite branch June 12, 2025 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
completed The issue has been fully resolved and the change will be in the next Skript update. enhancement Feature request, an issue about something that could be improved, or a PR improving something.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

6 participants