Skip to content

Conversation

@UnderscoreTud
Copy link
Member

Problem

When calling SyntaxElementInfo.fromModern the modern->legacy syntax info conversion doesn't account for some of the new features of the modern syntax info object, mainly instance suppliers. If the modern syntax info primarily uses a supplier for its instance creation and doesn't contain a nullary constructor, the conversion will throw an exception for not being able to find a valid constructor.

Solution

This is fixed by storing a reference to the source (modern) syntax info and delegating the modern syntax info methods to it.

Testing Completed

Updated EventSyntaxInfoTest.

Supporting Information

N/A


Completes: none
Related: none

@UnderscoreTud UnderscoreTud requested review from a team as code owners November 2, 2025 13:21
@UnderscoreTud UnderscoreTud added the bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. label Nov 2, 2025
@skriptlang-automation skriptlang-automation bot added the needs reviews A PR that needs additional reviews label Nov 2, 2025
Copy link
Member

@APickledWalrus APickledWalrus left a comment

Choose a reason for hiding this comment

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

Overall looks pretty good

@github-project-automation github-project-automation bot moved this to In Review in 2.13 Releases Nov 3, 2025
@skriptlang-automation skriptlang-automation bot removed the needs reviews A PR that needs additional reviews label Nov 3, 2025
Copy link
Member

@APickledWalrus APickledWalrus left a comment

Choose a reason for hiding this comment

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

Needs internal annotations on all introduced constructors

@github-project-automation github-project-automation bot moved this from In Review to Awaiting Merge in 2.13 Releases Nov 8, 2025
@skriptlang-automation skriptlang-automation bot added the patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version. label Nov 10, 2025
@sovdeeth sovdeeth merged commit edb901e into dev/patch Nov 11, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this from Awaiting Merge to Done - Awaiting Release in 2.13 Releases Nov 11, 2025
@skriptlang-automation skriptlang-automation bot added completed The issue has been fully resolved and the change will be in the next Skript update. and removed patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version. labels Nov 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. completed The issue has been fully resolved and the change will be in the next Skript update.

Projects

Status: Done - Awaiting Release

Development

Successfully merging this pull request may close these issues.

5 participants