Skip to content
Discussion options

You must be logged in to vote

Hi @goto40

By default, every element is exported from a file and available for referencing in the global scope. You should be able to restrict this (to only scope to elements which are imported) by overriding the default scope provider. Alternatively, you can keep it loose and validate that only references are valid to files which are declared as being imported. That's how we currently do grammar importing for the langium grammar language.

I'm sure @spoenemann has more to say about that ;)

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
7 replies
@goto40
Comment options

@goto40
Comment options

@goto40
Comment options

@msujew
Comment options

@goto40
Comment options

Answer selected by goto40
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants