Currently, XcodeBoost finds the selected symbol in the whole file, regardless of if the symbol is declared in the global scope or not. What I would like to do is limit the results to the uses of the symbol in the current method if it's not declared in the global scope.
A possible course of action:
Find occurrences of the symbol in the whole file.
Check if the occurrences all occur within method definitions.
If they do, then consider the symbol as local to the current method.
If they don't, consider the symbol as global and highlight all occurrences (current behaviour).
Currently, XcodeBoost finds the selected symbol in the whole file, regardless of if the symbol is declared in the global scope or not. What I would like to do is limit the results to the uses of the symbol in the current method if it's not declared in the global scope.
A possible course of action: