-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parser rule used as type for cross-reference is marked as "unused" #1309
Comments
I am willing to work on this issue. |
This is working as intended. The parser rule is indeed unused. You're supposed to use a type union instead. |
I see, that makes sense. What do you think about showing a corresponding hint with a quick-fix to replace the parser rule by the following union type?
|
Sure, I think that's good 👍 |
… parsing, but for cross-references eclipse-langium#1309
… parsing, but for cross-references eclipse-langium#1309
… parsing, but for cross-references eclipse-langium#1309
… parsing, but for cross-references eclipse-langium#1309
The following grammar uses the (unassigned) parser rule
Person
as type in the cross-reference ofGreeting
in order to link toNeighbor
s orFriend
s:The current behavior
Nevertheless, the parser rule
Person
is marked as "unused", e.g. in the Playground:The expected behavior
I would expect, that
Person
is not marked as "unused", since it is used as type in the cross-reference.The text was updated successfully, but these errors were encountered: