You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by pi...@apache.org on 2017/03/31 05:09:29 UTC
[4/5] git commit: [flex-falcon] [refs/heads/feature/chart-work] -
parseFloat and others don't have a node?
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/feature/chart-work
Commit: a8f7a5cc0a5f4e7f62335bba311ab23ce0cad20c
Parents: 5331a77
Author: Alex Harui <ah...@apache.org>
Authored: Thu Mar 30 12:16:15 2017 -0700
Committer: Alex Harui <ah...@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;