Hi,

I am investigating a bug in critics.
https://pharo.fogbugz.com/f/cases/22250/RBCascadeNextPutAllsRule-refactoring-crash-BlueInk

I found the source of the problem. In Pharo 6 this critic did a
rewrite of the method using RBParseTreeRewriter. This one managed the
case where the refactored node was contained in a cascade or not.

In Pharo 7 the rewrite is done in ReReplaceNodeCritique. But this one
uses a becomeForward: to replace an old node by a rewritten node. But
this breaks in case the new node cannot just replace the old one, like
when it try to introduce a cascade in another cascade.

I don't know renraku enough to fix the problem and I was wondering why
ReReplaceNodeCritique does the replacement itself when we already have
RBParseTreeNode?

-- 
Cyril Ferlicot
https://ferlicot.fr

Reply via email to