Replies: 1 comment 4 replies
-
Hey @cdietrich, we have written a few custom refactoring services for that in the past. See also the one for the domainmodel example language: |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
in our grammars we make heavy use of datatype rules for names and cross refs (name=SomeRule, ref=[SomeType:SomeRule])
the current implementation in the langium tooling around renaming
findDeclarationNodeAtOffset / findDeclaration / isNameNode etc heavily relys on terminals / pure leaf nodes being used for names / references.
what is your recommendation for that? mingle with the cst tree manually inside renameprovider rename/prepare rename?
i miss some utils for this e.g.
give me the complete node for this cross reference this leaf node is part of
Beta Was this translation helpful? Give feedback.
All reactions