Community
Participate
Working Groups
For a grammar such as --- Statement returns Statement: {Expression} {Statement.path=current}; --- Xtext requires Expression to be a subtype of Statement. This should not be enforced, since the rule will always return an object of type Statement. This is because there is no path through the rule that will not pass {Statement.path=current}.