Tracking down references to globals
Scott Wallace
scott.wallace at squeakland.org
Mon Aug 11 17:47:32 UTC 2003
Roel wrote:
> PS: If you want to see the references, do for example this thing I
> quickly hacked up:
>
> | methods |
> methods := Dictionary new.
> CompiledMethod allInstances do: [:cm |
> (cm hasLiteralSuchThat: [:lit | (lit isKindOf:
> Association) and: [lit
> key = #SourceFiles]])
> ifTrue: [methods at: cm put: cm who first -> cm
> selector]].
> ^methods
Andreas wrote:
>Or simpler:
>
>SystemNavigation new
> browseAllCallsOn: (Smalltalk associationAt: #SourceFiles)
Or, simpler still, type and select 'SourceFiles' and hit cmd-shift-N.
Cheers,
-- Scott
More information about the Squeak-dev
mailing list
|