[Laszlo-dev] For Review: Change 20090216-dda-V Summary: SWF9: Fix comma separated global declaration

Donald Anderson dda at ddanderson.com
Fri Feb 20 08:00:14 PST 2009


Change 20090216-dda-V by dda at lester-2.local 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: dda at ddanderson.com
www: http://www.ddanderson.com





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20090220/bf2abd38/attachment.html


More information about the Laszlo-dev mailing list