How to perform text search for Squeak 3.7 image?

I have an image that runs in Squeak version 3.7. I would like to perform a text search of strings and fragments of strings, for all classes, categories and selectors in the image. Is there a built-in tool that I can use for this kind of thing?

+3
source share
2 answers

"containing its source" (mentioned by Alexander Jasmine) will include class, string, selector, and method source comments.

If the string can be contained in the method protocol name, I think you will have to check it programmatically. Sort of:

Smalltalk allClasses select: [ :c |
    c organization categories anySatisfy: [: cat |
        '*substring*' match: cat ] ].
+5
source
  • , ( ).
  • Shift-Yellow , .


, , :

  • ,
  • ,
+4

Source: https://habr.com/ru/post/1779508/


All Articles