-
Notifications
You must be signed in to change notification settings - Fork 74
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
False positive in grammar multiple assignments validation #1756
Comments
@cdietrich thanks for the bug report! I will investigate it, but I will need to find some free time for that. Is it urgent on your side?
I agree: |
@cdietrich I investigated the issue and created the PR #1766 for it: Rewrite actions were checked in general, but not all combinations of looped and nested rewrite actions. |
…t now (#1766) * recursively take created objects in groups/alternatives into account, added some more specific test cases * simplified and reworked the validation to support actions as top-level elements in parser rules as well (was another bug) * derived test cases from the discussion in #1756 * refactoring: inlined method * improved error logging
…t now (#1766) * recursively take created objects in groups/alternatives into account, added some more specific test cases * simplified and reworked the validation to support actions as top-level elements in parser rules as well (was another bug) * derived test cases from the discussion in #1756 * refactoring: inlined method * improved error logging
Langium version: 3.3
given the grammar
the validator complains about
imho this is a false positive with the ast rewrite. maybe it is not properly detected if happing on all branches of an alternative.
The text was updated successfully, but these errors were encountered: