Skip to content
Discussion options

You must be logged in to vote

Hey @goto40,

You're just trying to reference a single element using it's fully qualified name, right? Your approach is a bit unconventional/overengineered, since what you're trying to do can be relatively easily accomplished using the scoping in our domain-model example. Although your fully qualified name is a chain of elements, it actually only references a single element which is at the end of the chain. That's exactly what the domain-model scoping does.

Note that your approach using synthetic AST nodes also breaks a lot of LSP behavior, notably the go to definition and find references feature.

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@msujew
Comment options

@goto40
Comment options

@goto40
Comment options

@goto40
Comment options

@msujew
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