Skip to content

Understanding the Cross Reference feature #467

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

You must be logged in to vote

HI @theogiraudet,

by default, Langium tries to infer the terminal which is used for the name property, which is why it can be omitted. In some cases, this behavior might not be intended. For example, if you want to reference elements in your DSL using a fully qualified name (FQN, dot separated IDs), although their name is simply ID. Then you would refer to it using person=[Person:FQN]. Examples can be found in the domain model grammar:

https://github.com/langium/langium/blob/8a1d1df07bbae6e2fb14f4f74ebe154402502038/examples/domainmodel/src/language-server/domain-model.langium#L25-L26

Regarding the INT issue at hand. This might be an oversight on our end, simply because we usually don't re…

Replies: 2 comments 9 replies

Comment options

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

Answer selected by theogiraudet
Comment options

You must be logged in to vote
8 replies
@ballcoach12
Comment options

@msujew
Comment options

@ballcoach12
Comment options

@ballcoach12
Comment options

@msujew
Comment options

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