The Trunk: Compiler-eem.402.mcz

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

The Trunk: Compiler-eem.402.mcz

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

==================== 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]!