eclipse-langium / langium

Next-gen language engineering / DSL framework
https://langium.org/
MIT License
665 stars 61 forks source link

feat: validate assignments when calling rules with multiplicity #1401

Closed bjthehun closed 3 months ago

bjthehun commented 4 months ago

Closes #1246:

Adds a new validation rule for rule calls. It looks up an enclosing container with multiplicity, and then demands that an assignment occurs for said call.

bjthehun commented 3 months ago

@JohannesMeierSE Thanks for pointing out the behavior of fragments. I've updated both the validation and incorporated fragments in the test case.