[squeak-dev] Find all users of a global variable

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[squeak-dev] Find all users of a global variable

Niko Matsakis
Is there an easy way to find all methods that reference a global  
variable?  In particular, I'd like to use this to find (for example)  
all methods that create instances of a certain class...


thanks,
Niko

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Find all users of a global variable

Diogenes Moreira
Hi niko, the easiest way to find all methods where instances create is the Finder Tool, that tool are in World>>Open Menu>> Code Finder.

This not is very performance but work. This tool have a simple and powerful syntax...you can find a complete explanation in the same tool.

Regards.

On Wed, Mar 12, 2008 at 10:35 AM, Niko Matsakis <[hidden email]> wrote:
Is there an easy way to find all methods that reference a global
variable?  In particular, I'd like to use this to find (for example)
all methods that create instances of a certain class...


thanks,
Niko




Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Find all users of a global variable

Bert Freudenberg

On Mar 12, 2008, at 13:44 , Diogenes Moreira wrote:

> Hi niko, the easiest way to find all methods where instances create  
> is the Finder Tool, that tool are in World>>Open Menu>> Code Finder.
>
> This not is very performance but work. This tool have a simple and  
> powerful syntax...you can find a complete explanation in the same  
> tool.
>
> Regards.
>
> On Wed, Mar 12, 2008 at 10:35 AM, Niko Matsakis <[hidden email]>  
> wrote:
> Is there an easy way to find all methods that reference a global
> variable?  In particular, I'd like to use this to find (for example)
> all methods that create instances of a certain class...


Actually, the easiest and fastest way is to select the Class (or any  
global) and press Cmd-Shift-N (Alt-Shift-N on PCs). This is also in  
the Browser - select the class, bring up the menu, choose "class refs  
(N)". The uppercase N describes the shifted short cut.

- Bert -