|Scoping and cross-references [message #986202]
||Mon, 19 November 2012 12:42
| Quentin Boucher
Registered: July 2012
I am still working on the implementation of a scope provider. In my language, I can declare elements at one place and extend them (at several places) later in the model. In order to extend an element, I defined a Long_ID which could be defined as follows:
Long_ID: head=[Element] ('.' tail=Long_ID)?
Such that I can make a model like this one:
Now, I don't know how I can find all extensions of an element. In my example, I would like to get all (2) extension points of B in order to get its full content (i.e. D, F, G, H). The easiest way would be to go through all the extension elements and find if they reference the desired declaration element. However, it doesn't seem possible in the context of the scope provider.
Do you have any tip to check this?
[Updated on: Mon, 19 November 2012 12:44]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02445 seconds