flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [4/4] git commit: [flex-falcon] [refs/heads/develop] - parseFloat and others don't have a node?
Date Thu, 30 Mar 2017 19:16:33 GMT
parseFloat and others don't have a node?


Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/a8f7a5cc
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/a8f7a5cc
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/a8f7a5cc

Branch: refs/heads/develop
Commit: a8f7a5cc0a5f4e7f62335bba311ab23ce0cad20c
Parents: 5331a77
Author: Alex Harui <aharui@apache.org>
Authored: Thu Mar 30 12:16:15 2017 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Thu Mar 30 12:16:15 2017 -0700

----------------------------------------------------------------------
 .../flex/compiler/internal/codegen/js/jx/FieldEmitter.java    | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/a8f7a5cc/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/FieldEmitter.java
----------------------------------------------------------------------
diff --git a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/FieldEmitter.java
b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/FieldEmitter.java
index 7fabff0..07d23a3 100644
--- a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/FieldEmitter.java
+++ b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/FieldEmitter.java
@@ -122,8 +122,11 @@ public class FieldEmitter extends JSSubEmitter implements
             		// otherwise it would be a memberaccessexpression?
             		FunctionDefinition fd = (FunctionDefinition)fcn.getNameNode().resolve(getProject());
             		IASNode m = fd.getNode();
-            		// re-emit it to collect static initializer class references in usedNames
-            		getEmitter().stringifyNode(m);
+            		if (m != null)
+            		{
+	            		// re-emit it to collect static initializer class references in usedNames
+	            		getEmitter().stringifyNode(m);
+            		}
             	}
             }
         	getModel().inStaticInitializer = false;


Mime
View raw message