Le 22/09/2015 17:56, Yuriy Tymchuk a écrit :
Hi everyone,
I need someone who knows how RBParseTreeRewriter & co. work. May of quality rules are implemented as rewrite rules which is cool. But they donât report the interval in source code which can be highlighted to help with understanding of the issue.
Now⦠the check happens in RBTransformationRule>>#checkMethod:. Is it possible to obtain the matched string there? Because in that case we can get highlighting working which will be very useful.
Hi Uko, it seems all the information is in the context of the RBParseTreeRewriter instance, but I'm not finding how to get the top-level node (the root of the tree which will be replaced), knowing that you may have multiple matches in a method (i.e. that there is multiple nodes). Thierry