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

commits at source.squeak.org commits at source.squeak.org
Tue Mar 19 18:44:22 UTC 2019

Eliot Miranda uploaded a new version of Compiler to project The Trunk:

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

Name: Compiler-eem.402
Author: eem
Time: 19 March 2019, 11:44:20.570473 am
UUID: 886de89c-a3ed-4fb5-a8ed-7f9bf78d69b6
Ancestors: Compiler-eem.401, Compiler-ul.401

Merge with Compiler-ul.401, eliminate undeclatred variable in ParseNodeWithPrecedingStatementEnumerator.

=============== Diff against Compiler-eem.401 ===============

Item was changed:
  ----- Method: ParseNodeWithPrecedingStatementEnumerator>>ofBlock: (in category 'initialize-release') -----
  ofBlock: aBlock
  	"N.B. This enumerator visits a node before any of the node's children.
  	 Hence, when enumewrating statements in a block, we can ensure that
  	 the second argument to the block, the preceeding statement, is non-nil
  	 only for top-level statements in the block by nilling out preceedingStatement
  	 once the block is evaluated. Perhaps stronger would be to capture its value
  	 in a temporary and nil it before evaluating, but this is good enough."
  	theBlock := [:node|
  				aBlock value: node value: precedingStatement.
+ 				precedingStatement := nil]!
- 				preceedingStatement := nil]!

More information about the Squeak-dev mailing list