[squeak-dev] The Trunk: System-eem.469.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Mar 12 21:31:00 UTC 2012


Eliot Miranda uploaded a new version of System to project The Trunk:
http://source.squeak.org/trunk/System-eem.469.mcz

==================== Summary ====================

Name: System-eem.469
Author: eem
Time: 12 March 2012, 2:29:40.866 pm
UUID: 84026536-7593-42ba-9e2f-4eca18e2903d
Ancestors: System-nice.468

Add SystemNavigation>methodsWithUnboundGlobals

=============== Diff against System-nice.468 ===============

Item was added:
+ ----- Method: SystemNavigation>>methodsWithUnboundGlobals (in category 'query') -----
+ methodsWithUnboundGlobals
+ 	"Get all methods that use undeclared global objects that are not listed in Undeclared. For a clean image the result should be empty."
+ 
+ 	"SystemNavigation new methodsWithUnboundGlobals"
+ 
+ 	^self allSelect:
+ 		[:m|
+ 		m literals anySatisfy:
+ 			[:l|
+ 			l isVariableBinding
+ 			and: [l key isSymbol "avoid class-side methodClass literals"
+ 			and: [(m methodClass bindingOf: l key) isNil
+ 			and: [(Undeclared associationAt: l key ifAbsent: []) ~~ l]]]]]!



More information about the Squeak-dev mailing list