Hello,
I'm currently looking a bit at how lint rules work. The current example I'm looking at is:
RBTempVarOverridesInstVarRule
=> this rule check for tmp variables that override an existing instance variable in the class
=> when such a case is detected, the result is stored like that:
result
addClass: aContext selectedClass
selector: aContext selector.
result addSearchString: varName.
=> so, all variables are just stored one by one in a collection ('searchString') and never linked to the method in which the problem happened.
What I wonder is: How are you able then to display, as result, a list of method, and for each of them to highligth the 'problematic' tmp variable?
How do you make the the link between a class-selector from the result, and, the variable name causing the problem for this selector?
_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project