The Trunk: System-eem.469.mcz

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

The Trunk: System-eem.469.mcz

commits-2
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]]]]]!