Preventing references before delcaration


I want to restrict the search scope for references to only contain entities which have already been declared. I've already examined the BaseLanguage implementation but that seems far to complex for my very basic needs. The task seems quite simple: I need a list of all EntityDeclarations which appear "upstream" in the model. How can I accomplish that?

Thanks for any hints,

1 comment
Comment actions Permalink
Hi Christian,

you can navigate in the AST tree with ancestor() and decendants().Both have various options, which are described in the Reference Documentation


Please sign in to leave a comment.