I believe a package with an extension method should be seen as depending on the package owning the extended class (and also depending on the extended class)

Right now, this is not implemented in the various {sure|potential}ReferencedPackage , {sure|potential}ReferencedClass

After discussing with Simon, we believe that this would at least call for an explicit representation of the extension as an association.

This would go in Famix-Smalltalk

The question maybe how to represent this?

Simon sees it as an association between a package and a method: Me (package) defines an extension (the method)
I was rather thinking of a class/method association: Me (class) am extended by you (method)
and the reverse: me (method) extends you (class)

then of course we would need to implement the query system on top of this ...

what do you people think about this?

nicolas