I do not understand. qIncomingAccesses is not defined in my image.
But what does it mean? What "q" is for? "incomingAccesses" is an
I am lost
On 12 Jan 2011, at 14:51, Simon Denier wrote:
Take a look at the following definitions:
^ self attributes flatCollect: [ :each | each incomingAccesses ]
FAMIXScopingEntity>>qIncomingAccesses "Package, Namespace"
^ self classes flatCollect: [ :c | c qIncomingAccesses ]
Now does it make sense to have a similar definition for FAMIXMethod?
^ (self parameters collect: #incomingAccesses)
addAll: (self localVariables collect: #incomingAccesses);
We can't really say there are 'incoming accesses' on attributes in a method.
On the contrary, methods are the ones which make (outgoing) accesses to attributes. On the
other hand, incoming accesses on parameters and local variables are necessarily from the
lexical scope, the method itself: so not a very interesting information. And it's not
consistent with the FamixClass and FamixScopingEntity, which collect all access to
attributes within their scope.
In other words, we can say:
aClass qIncomingInvocaions = aClass methods flatCollect: #qIncomingInvocations
aClass qIncomingAccesses ~= aClass methods flatCollect: #qIncomingAccesses
I am wondering if it would not be better to just say:
^ Array new
Or maybe I'm just trying to split hairs
Moose-dev mailing list
Alexandre Bergel http://www.bergel.eu