[Pkg] The Trunk: TemporaryVariableScopeEditor-eem.2.mcz

commits at source.squeak.org commits at source.squeak.org
Sat May 5 20:31:05 UTC 2012


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

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

Name: TemporaryVariableScopeEditor-eem.2
Author: eem
Time: 5 May 2012, 1:30:55.001 pm
UUID: e6f191e7-a640-45ae-9402-96597be44653
Ancestors: TemporaryVariableScopeEditor-eem.1

Add editMethod: convenience.  Recategorize class-side methods.

=============== Diff against TemporaryVariableScopeEditor-eem.1 ===============

Item was changed:
+ ----- Method: TempScopeEditor class>>edit (in category 'editing') -----
- ----- Method: TempScopeEditor class>>edit (in category 'as yet unclassified') -----
  edit
  	"Trawl the system for methods containing misdeclared temps and correct these methods."
  	SystemNavigation default allSelect:
  		[:m| | scanner |
  		(m isQuick not
  		and: [(scanner := InstructionStream on: m) scanFor:
  				[:b| b = 143 and: [scanner followingByte >= 16]]]) ifTrue:
  			[(self new forMethod: m) edit].
  		false]!

Item was added:
+ ----- Method: TempScopeEditor class>>editMethod: (in category 'editing') -----
+ editMethod: aCompiledMethod
+ 	(self new forMethod: aCompiledMethod) edit!

Item was changed:
+ ----- Method: TempScopeEditor class>>editPackage: (in category 'editing') -----
- ----- Method: TempScopeEditor class>>editPackage: (in category 'as yet unclassified') -----
  editPackage: packageInfoOrName
  	"Trawl the given package for methods containing misdeclared temps and correct these methods."
  	"self editPackage: #Cassowary"
  	SystemNavigation new
  		allMethodsSelect:
  			[:m| | scanner |
  			(m isQuick not
  			and: [(scanner := InstructionStream on: m) scanFor:
  					[:b| b = 143 and: [scanner followingByte >= 16]]]) ifTrue:
  				[(self new forMethod: m) edit].
  			false]
  		localToPackage: packageInfoOrName!



More information about the Packages mailing list