2017-01-23 17:00 GMT+01:00 Yuriy Tymchuk <yuriy.tymc...@me.com>: > I think that we hacked too much :). I like how ParsetreeRewriter is > working, but I think that it would be nice to have some API to say: ok, I > have this node, now I want to replace it (maybe it should generate a new > changed tree), so the pattern syntax would be more of a nice interface > instead of a single entry point. > > Anyway, I also think that this substitution without reformatting is really > cool. I need to double check it, because I think that many uses do not use > auto fix from lint rules because it reformats their code. >
Yes, I also hate extract temp/method because it reformats original method