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

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.

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

4 participants