Skip to content
Discussion options

You must be logged in to vote

In Langium, an import is just a filter of the global scope (collection of all exported symbols from all workspace files), selecting the symbols defined in a specific document. Typically, these are added as the outermost scope in the chain of scopes (usually each block of statements opens a new subscope). But it's perfectly fine to inject a filtered global scope somewhere in the middle of the chain of scopes, depending on where your import is declared. Your custom ScopeProvider is where you can describe this language-specific logic.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ejfasting
Comment options

@spoenemann
Comment options

Answer selected by ejfasting
@ejfasting
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
3 participants