Skip to content

Enable explicit types for infix rules - #1954

Merged
spoenemann merged 4 commits into
mainfrom
infix-rule-types
Jul 9, 2025
Merged

spoenemann merged 4 commits into
mainfrom
infix-rule-types

Conversation

@spoenemann

Copy link
Copy Markdown
Contributor

Closes #1949.

@spoenemann spoenemann added this to the v4.0.0 milestone Jun 13, 2025
@spoenemann
spoenemann requested a review from msujew June 13, 2025 21:38
@spoenemann

Copy link
Copy Markdown
Contributor Author

I also included a fix for a bug introduced with #1942: we need to generate metadata for union types, too, so the AstReflection can include them in the subtype/supertype computation.

@spoenemann
spoenemann force-pushed the infix-rule-types branch 2 times, most recently from 1369313 to 990077d Compare July 2, 2025 07:01

@msujew msujew left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I haven't tested it thoroughly yet, but the automated tests are looking pretty good. Thanks for the reflection fixes :)

Comment thread packages/langium-cli/src/generator/ast-generator.ts Outdated
@spoenemann
spoenemann merged commit 7c4f871 into main Jul 9, 2025
@spoenemann
spoenemann deleted the infix-rule-types branch July 9, 2025 12:21
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.

Allow to return declared types from infix rules

2 participants