[squeak-dev] The Trunk: Kernel-cmm.580.mcz
commits at source.squeak.org
commits at source.squeak.org
Tue May 3 14:39:25 UTC 2011
Chris Muller uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-cmm.580.mcz
==================== Summary ====================
Name: Kernel-cmm.580
Author: cmm
Time: 3 May 2011, 9:38:48.056 am
UUID: 88d42e3f-ca37-4d1b-87d6-76ed21f69864
Ancestors: Kernel-cmm.579
Restored Behavior>>whichMethodsStoreInto:.
=============== Diff against Kernel-cmm.579 ===============
Item was added:
+ ----- Method: Behavior>>whichMethodsStoreInto: (in category 'testing method dictionary') -----
+ whichMethodsStoreInto: instVarName
+ "Answer a collection of selectors whose methods access the argument,
+ instVarName, as a named instance variable."
+ "Point whichMethodsStoreInto: 'x'."
+ | instVarIndex |
+ instVarIndex := self allInstVarNames
+ indexOf: instVarName
+ ifAbsent: [ ^ IdentitySet new ].
+ ^ Array streamContents:
+ [ : stream | self methodDict keysAndValuesDo:
+ [ : eachSelector : eachMethod | (eachMethod writesField: instVarIndex) ifTrue: [ stream nextPut: eachMethod ] ] ]!
More information about the Squeak-dev
mailing list
|