Spotting Pragma users with GTSpotter

Finding pieces of code that are annotated in a certain way can be challenging in many IDEs. In Pharo, this is fairly straightforward using GTSpotter.

For example, how can we find all methods annotated with <menu>?

Spawn Spotter, and type menu #pr. This will search for menu and show only the results from categories starting with pr (from Pragmas).

Pragmas.png

Then simply dive in (Cmd+RightArrow) the menu Pragma to find the concrete users.

Pragma-users.png

Posted by Tudor Girba at 9 January 2016, 10:41 pm link
|