[squeak-dev] The Trunk: Compiler-eem.338.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Apr 3 23:09:03 UTC 2017


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

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

Name: Compiler-eem.338
Author: eem
Time: 3 April 2017, 4:08:55.888174 pm
UUID: 8d9fa12c-80e0-4ba8-8101-8ead7d8425eb
Ancestors: Compiler-eem.337

Use the newly regularized literal printing in Collections-eem.744 and Kernel-eem.1082 to ensure that literal characters and arrays are printed as such when pretty-rpinting and/or decompiling.

=============== Diff against Compiler-eem.337 ===============

Item was changed:
  ----- Method: LiteralNode>>printOn:indent: (in category 'printing') -----
  printOn: aStream indent: level
  
+ 	key isVariableBinding ifTrue:
+ 		[key key isNil
+ 			ifTrue:
+ 				[aStream nextPutAll: '###'; nextPutAll: key value soleInstance name]
+ 			ifFalse:
+ 				[aStream nextPutAll: '##'; nextPutAll: key key].
+ 		^self].
+ 	key isLiteral ifTrue:
+ 		[key printAsLiteralOn: aStream.
+ 		 ^self].
+ 	key storeOn: aStream!
- 	key isVariableBinding
- 		ifTrue:
- 			[key key isNil
- 				ifTrue:
- 					[aStream nextPutAll: '###'; nextPutAll: key value soleInstance name]
- 				ifFalse:
- 					[aStream nextPutAll: '##'; nextPutAll: key key]]
- 		ifFalse:
- 			[key storeOn: aStream]!



More information about the Squeak-dev mailing list