You don't have to re-submit this if you addressed my review comments...

Approved.

On 2009-02-20, at 11:00EST, Donald Anderson wrote:

Change 20090216-dda-V by [email protected] on 2009-02-16 12:11:27 EST
   in /Users/dda/laszlo/src/svn/openlaszlo/trunk-b
   for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: SWF9: Fix comma separated global declaration

New Features:

Bugs Fixed: [LPP-7746] SWF9: comma separated global var declarations don't compile

Technical Reviewer: ptw (pending)
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
   (second review: modified details and updated code comments)

In DHTML and SWF9, variable statements can be processed and replaced by empty expressions. This changeset fixes the unparser so it knows to drop empty expressions in a variable declaration list. This was not noticed testing with single variables 'var foo', as the unparser generated a comma separated list of expressions - one blank expression, comma separated, still yielded a blank result.

The alternative of enforcing that the AST not allow ASTEmptyExpressions under variable statements is awkward. This involves more processing at the parent variable statement, rather than each variable expression,
   and a similar replacement happens in multiple places.

Tests:
The test case from the JIRA now compiles. Same test case with mix of initialized and uninitialized vars compiles. The usual regression tests: smokecheck, lzpix, weather on swf9,swf8,dhtml

Files:
M      WEB-INF/lps/server/src/org/openlaszlo/sc/ParseTreePrinter.java

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20090216-dda-V.tar



--

Don Anderson
Java/C/C++, Berkeley DB, systems consultant

voice: 617-306-2057
email: [email protected]
www: http://www.ddanderson.com






Reply via email to