2015-05-17 11:34 GMT+02:00 stepharo <steph...@free.fr>: > > > Le 17/5/15 11:07, Yuriy Tymchuk a écrit : > >> Hi, it want to rewrite the SmallLint rule which checks whether an >> abstract class is referenced. First question is whether the rule is really >> important, because sometimes there are abstract classes with some utility >> class methods, so maybe we should check whether they are “instantiated” >> with #new or #basicNew. >> > > indeed this rule is not really revelant. > > >> Now the real question is how do you get all classes referenced by a >> method. So instead of performing a rule check on a class, do it on a method >> and find if any of the accessed classes is abstract. >> > > check the literal frame of the methods. When a method refers to a class > the class binding is in the literal frame of the compiled method. >
There is one method to get all referenced classes by a class Morph referencedClasses -> MorphLostFocus MorphChanged PolygonMorph SystemWindow IdentityTransform GLMUIThemeExtraIcons RGMethodDefinition GTObjectPrinter ..... It is defined by TBehavior. > > >> Uko >> >> > >