Skip to content

How to get/access globally visible model elements via their name? #621

Answered by msujew
goto40 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @goto40,

once you have the appropriate AstNodeDescription element it's relatively simple to find the actual node. We do the following in the DefaultLinker during the linking process:

https://github.com/langium/langium/blob/34b37014727694b7f09e969ecc13f74cf735f926/packages/langium/src/references/linker.ts#L205-L211

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@goto40
Comment options

Answer selected by goto40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants