<div dir="ltr"><div>Hello,</div><div><br></div><div>My goal is to find out all redundant references to `self`. To achieve this I need to know if a self reference is captured by closure or it is not. Unfortunately, structural output lacks of any information about a closure declared in a method. Any advices are welcome.</div><div><br></div><div>Example: <a href="https://gist.github.com/HeMet/1ffd06b58e184071720e85514f46917d">https://gist.github.com/HeMet/1ffd06b58e184071720e85514f46917d</a></div></div>