Replies: 1 comment 7 replies
-
The idea behind creating a synthetic node at this point is that we might encounter a cross reference directly at the start of a parser rule. In this case, the AST node that is being picked doesn't match the node that we need to compute the scope for the cross reference. To do that, we need to construct a new object with the expected type. Can you test whether this is also the case with Note that the AST picking logic might still be riddled with edge case issues, so a reproducible example would be great so we can use that to fix the issue :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, what is the background on this code
how can i detect this situation in the scope provider.
the type of the node and the parent node is the same with this in our grammar
(after langium 2.1.1. update)
grammar
test model
Beta Was this translation helpful? Give feedback.
All reactions