Oct. 15, 2015
4:34 p.m.
Le 15/10/2015 15:00, Yuriy Tymchuk a écrit :
Hi,
when a transformation rule checks a method, except for only checking whether it matches the rule, it also checks if
self class recursiveSelfRule executeTree: rewriteRule tree initialAnswer: false
evaluates to false. #recursiveSelfRule is
'`@methodName: `@args | `@temps | self `@methodName: `@args1' '`@methodName: `@args | `@temps | ^ self `@methodName: `@args1â
Do I understand correctly that before signaling that method is bad the rule makes sure that the transformation will not create a recursion?
Not sure about the 'before signaling that method is bad', but the match is on a method which creates an infinite loop by calling itself. Thierry