Hola todos,
There is a bit of confusion regarding visibility of structural
entities (at least for me). In some places, we say that a public
entity has a 'public' modifier, and in some other places, we say it is
accessed outside the package/module in which it is defined. I propose
to clear these things up.
In FAMIXNamedEntity, these methods checks for the presence of a
modifier in the method signature, as in:
isPublic
<MSEProperty: #isPublic type: #Boolean>
^ self modifiers includes: #isPublic
In FAMIXFunction, there is:
isPublic
"checker whether I am called outside the module in which I am defined"
^ self receivingInvocations anySatisfy: [:inv |
inv sender parentScope ~~ self parentScope]
I was wondering whether FAMIXNamedEntity>>isPublic and friends cannot
be renamed as #hasPublicModifier ?
In that case, #isPublic and friends will be based upon client accesses.
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.