|
|
Re: ReferenceFinder returns unwanted references [message #1600505 is a reply to message #1600392] |
Wed, 04 February 2015 09:33 |
Stefan Scheiber Messages: 18 Registered: February 2015 |
Junior Member |
|
|
Thank you for your swift reply!
That is the class where I debugged to see why I get the references that I do instead of the ones that I expect.
The reason is the derived reference to the Class in Variable. If the variable would be a direct child of Class then this reference would be discarded as it is a container reference. However, in my case the variable is not a direct child but a grandchild (there is a Group in between). The reference to Class is not a containment reference it is a derived reference that refers to a grandparent. However, based on the same rationale that container references (i.e. references to parent) are ignored by ReferenceFinder, shouldn't any references to grand-parents be ignored as well?
with such a model
class Class extends Type {
container Library library opposite classes
contains Variable[] vars opposite clazz
String name
}
class Variable {
container Class clazz opposite vars
String name
refers Type ^type
}
and such a DSL
class A {
b: B;
}
class B {
i: INT;
j: INT;
}
the result of find references of B would be as expected
b: B
and not
b: B
i: INT
j: INT
I hope that my question/problem is clearer now.
[Updated on: Wed, 04 February 2015 09:41] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03565 seconds