Preventing references before delcaration

Hello!

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,

Christian
1 comment
Hi Christian,

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

Dan
0

Please sign in to leave a comment.