-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Parser rule used as type for cross-reference is marked as "unused" #1309
Labels
bug
Something isn't working
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 👍 |
JohannesMeierSE
added a commit
to JohannesMeierSE/langium
that referenced
this issue
Dec 12, 2023
… parsing, but for cross-references eclipse-langium#1309
JohannesMeierSE
added a commit
to JohannesMeierSE/langium
that referenced
this issue
Dec 12, 2023
JohannesMeierSE
added a commit
to JohannesMeierSE/langium
that referenced
this issue
Feb 16, 2024
… parsing, but for cross-references eclipse-langium#1309
JohannesMeierSE
added a commit
to JohannesMeierSE/langium
that referenced
this issue
Feb 16, 2024
JohannesMeierSE
added a commit
to JohannesMeierSE/langium
that referenced
this issue
Feb 29, 2024
… parsing, but for cross-references eclipse-langium#1309
JohannesMeierSE
added a commit
to JohannesMeierSE/langium
that referenced
this issue
Feb 29, 2024
JohannesMeierSE
added a commit
to JohannesMeierSE/langium
that referenced
this issue
Oct 8, 2024
… parsing, but for cross-references eclipse-langium#1309
JohannesMeierSE
added a commit
to JohannesMeierSE/langium
that referenced
this issue
Oct 8, 2024
JohannesMeierSE
added a commit
to JohannesMeierSE/langium
that referenced
this issue
Feb 17, 2025
… parsing, but for cross-references eclipse-langium#1309
JohannesMeierSE
added a commit
to JohannesMeierSE/langium
that referenced
this issue
Feb 17, 2025
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
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: