Nov. 7, 2018
4:53 p.m.
Hi Marcus, On Wed, 7 Nov 2018 at 14:27, Marcus Denker <marcus.denker@inria.fr> wrote:
On 7 Nov 2018, at 13:56, Alistair Grant <akgrant0710@gmail.com> wrote:
...
Good point. How to get a list of all the methods that have MetaLinks? The following seems to work, but probably isn't the most efficient:
Object allSubclasses flatCollect: [ :each | each methods select: [ :method | method ast links isNotNil ] ]
you can ask the method directly
Object allSubclasses flatCollect: [ :each | each methods select: [ :method | method hasLinks ] ]
this is much faster as it returns immediately nil for methods without links (without AST reification).
Thanks! Cheers, Alistair