-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @nasabenz . Yep you're running into the default scoping, which works in most cases, but sounds like you're looking for something that works with qualified names instead. We actually have an example for such a project, the Domain Model example, that utilizes qualified names to correctly resolve cross-references from other parts of your program. Specifically here's an example program that uses qualified names in the example domain model language. In order to be able to support using qualified names to resolve scoping correctly, you're going to want to look into that example and checkout the grammar (as you'll need to support QNs there), as well as implementing the associated services to support QN computation & resolution. For more details, you can read up on our guide for implementing qualified name scoping as well 😉 . |
Beta Was this translation helpful? Give feedback.
Hey @nasabenz . Yep you're running into the default scoping, which works in most cases, but sounds like you're looking for something that works with qualified names instead.
We actually have an example for such a project, the Domain Model example, that utilizes qualified names to correctly resolve cross-references from other parts of your program. Specifically here's an example program that uses qualified names in the example domain model language.
In order to be able to support using qualified names to resolve scoping correctly, you're going to want to look into that example and checkout the grammar (as you'll need to support QNs there), as well as implementing the associated services to…