March 20, 2014
6:04 p.m.
On 20 Mar 2014, at 18:45, Yuriy Tymchuk <yuriy.tymchuk@me.com> wrote:
Hi everyone.
I need to check if a method sends anything to self. There is a method #sendsToSuper, but I donât really know how can I search for self reference in a same way. Can anybody suggest me where can I learn this?
I did something like that with Alex :) The code is here: http://smalltalkhub.com/#!/~BenjaminVanRyseghem/PrivacyChecker/ You can have a look at the class SelfSendCollector. Basically it creates the AST of the method, and visit it to collect the self sends Hope it helps, Ben