Author: dda
Date: 2007-12-11 10:04:25 -0800 (Tue, 11 Dec 2007)
New Revision: 7509

Modified:
   
openlaszlo/branches/devildog/WEB-INF/lps/server/src/org/openlaszlo/sc/SWF9Generator.java
Log:
Change 20071211-dda-y by [EMAIL PROTECTED] on 2007-12-11 12:52:21 EST
    in /Users/dda/laszlo/src/svn/openlaszlo/branches/devildog
    for http://svn.openlaszlo.org/openlaszlo/branches/devildog

Summary: Fix (some) problems compiling SWF9 runtime

New Features: none

Bugs Fixed:

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

Documentation:

Release Notes:

Details:
    Reenabled some code in the compiler that visited a
    class definition block and handled 'class if' statements.
    These statements allow 'if ($swf9)' style code to be processed outside
    of a method.  This code, taken from the CommonGenerator superclass,
    is now enabled, at least to the extent that these statements are processed.
    A TODO has been left in the SWFGenerator part of this code, as more
    is to be done, or at least considered.

Tests:



Modified: 
openlaszlo/branches/devildog/WEB-INF/lps/server/src/org/openlaszlo/sc/SWF9Generator.java
===================================================================
--- 
openlaszlo/branches/devildog/WEB-INF/lps/server/src/org/openlaszlo/sc/SWF9Generator.java
    2007-12-11 18:03:20 UTC (rev 7508)
+++ 
openlaszlo/branches/devildog/WEB-INF/lps/server/src/org/openlaszlo/sc/SWF9Generator.java
    2007-12-11 18:04:25 UTC (rev 7509)
@@ -79,21 +79,16 @@
       }
     }
 
-    /*
-     * TODO: [2007-11-20 dda]  some code below borrowed from superclass
-     * that is currently unused, but may translate to something we need
-     * to output or track.  In particular, we'll want to do something
-     * with props/classProps, there may be some extra directives
-     * (e.g. 'final' class) that affect our output.
-     */
-
-    /*
     SimpleNode[] dirs = (SimpleNode [])(Arrays.asList(children).subList(4, 
children.length).toArray(new SimpleNode[0]));
     List props = new ArrayList();
     List classProps = new ArrayList();
     List stmts = new ArrayList();
     translateClassDirectivesBlock(dirs, classnameString, props, classProps, 
stmts);
 
+    /*
+     * TODO: [2007-12-11 dda]  do anything with props/classProps?
+     */
+
     // Plug the stmt children we found back into this node's children
     SimpleNode[] newch = new SimpleNode[stmts.size() + 4];
     int i;
@@ -104,7 +99,6 @@
       newch[i++] = visitStatement(n);
     }
     node.setChildren(newch);
-    */
 
     boolean savedInNonDefault = inNonDefaultClass;
     inNonDefaultClass = true;


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to