Closed msujew closed 4 months ago
Seems like we only ever assume that data type rules call other data type rules in an unassigned way, see: https://github.com/eclipse-langium/langium/blob/0239db7b353bf06f5c0710e40bd264fe17fccb55/packages/langium/src/parser/langium-parser.ts#L236-L251
The assumption breaks as soon as we call the data type rule from a normal parser rule without an assignment. I assume the solution would be to just ignore the result and store the CST created in the current AST node.
Discussed in https://github.com/eclipse-langium/langium/discussions/1357