incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gordonsm...@apache.org
Subject svn commit: r1405263 - /incubator/flex/falcon/trunk/compiler/src/org/apache/flex/compiler/internal/tree/mxml/MXMLEventSpecifierNode.java
Date Sat, 03 Nov 2012 02:32:31 GMT
Author: gordonsmith
Date: Sat Nov  3 02:32:30 2012
New Revision: 1405263

URL: http://svn.apache.org/viewvc?rev=1405263&view=rev
Log:
Falcon: Added nontrivial tests for parsing event attributes and event tags.


Modified:
    incubator/flex/falcon/trunk/compiler/src/org/apache/flex/compiler/internal/tree/mxml/MXMLEventSpecifierNode.java

Modified: incubator/flex/falcon/trunk/compiler/src/org/apache/flex/compiler/internal/tree/mxml/MXMLEventSpecifierNode.java
URL: http://svn.apache.org/viewvc/incubator/flex/falcon/trunk/compiler/src/org/apache/flex/compiler/internal/tree/mxml/MXMLEventSpecifierNode.java?rev=1405263&r1=1405262&r2=1405263&view=diff
==============================================================================
--- incubator/flex/falcon/trunk/compiler/src/org/apache/flex/compiler/internal/tree/mxml/MXMLEventSpecifierNode.java
(original)
+++ incubator/flex/falcon/trunk/compiler/src/org/apache/flex/compiler/internal/tree/mxml/MXMLEventSpecifierNode.java
Sat Nov  3 02:32:30 2012
@@ -94,7 +94,8 @@ import org.apache.flex.compiler.tree.mxm
 class MXMLEventSpecifierNode extends MXMLSpecifierNodeBase
         implements IMXMLEventSpecifierNode, IScopedNode
 {
-
+    private static NodeBase[] NO_AS_NODES = new NodeBase[0];
+    
     /**
      * Constructor
      * 
@@ -115,7 +116,7 @@ class MXMLEventSpecifierNode extends MXM
      * The child nodes, representing the ActionScript statements to be executed
      * to handle the event.
      */
-    private NodeBase[] asNodes;
+    private NodeBase[] asNodes = NO_AS_NODES;
 
     /**
      * The scope contained by the autogenerated event handler method. The



Mime
View raw message