Scoping and cross-references [message #986202] |
Mon, 19 November 2012 12:42 |
Quentin Boucher Messages: 27 Registered: July 2012 |
Junior Member |
|
|
Hello,
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:
A {
B {D},
C}
A.B {
F,
G
}
A.B {
H
}
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?
Thank you!
Quentin
[Updated on: Mon, 19 November 2012 12:44] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03520 seconds