So, what the definition of FAMIXFunction>>packageScope should look like?
There is no notion of packageScope for a Function, so it should return nil in this case.
I added -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= FAMIXFunction>>packageScope "No package scope for functions"
^ nil -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
in Famix-Core-AlexandreBergel.188
This could always be adjusted in the future when one need to analyze languages that has scoped function (e.g., Racket)
Cheers, Alexandre