flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joshtynj...@apache.org
Subject [3/5] git commit: [flex-falcon] [refs/heads/develop] - JSGoogEmitter: used new utility functions for finding variables and functions in a package
Date Mon, 11 Jan 2016 19:54:55 GMT
JSGoogEmitter: used new utility functions for finding variables and functions in a package


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

Branch: refs/heads/develop
Commit: 8a7bdc6a7fbe1b6a647d4bd2a44fbbb3f4f75307
Parents: 4faab6b
Author: Josh Tynjala <joshtynjala@apache.org>
Authored: Mon Jan 11 11:53:27 2016 -0800
Committer: Josh Tynjala <joshtynjala@apache.org>
Committed: Mon Jan 11 11:53:27 2016 -0800

----------------------------------------------------------------------
 .../internal/codegen/js/goog/JSGoogEmitter.java         | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/8a7bdc6a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/goog/JSGoogEmitter.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/goog/JSGoogEmitter.java
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/goog/JSGoogEmitter.java
index 9156926..6e7d555 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/goog/JSGoogEmitter.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/goog/JSGoogEmitter.java
@@ -172,10 +172,10 @@ public class JSGoogEmitter extends JSEmitter implements IJSGoogEmitter
     {
         IASScope containedScope = definition.getContainedScope();
         
-        ITypeDefinition type = findType(containedScope.getAllLocalDefinitions());
+        ITypeDefinition type = EmitterUtils.findType(containedScope.getAllLocalDefinitions());
         if (type != null)
         {
-            ITypeNode tnode = findTypeNode(definition.getNode());
+            ITypeNode tnode = EmitterUtils.findTypeNode(definition.getNode());
             if (tnode != null)
             {
                 getWalker().walk(tnode); // IClassNode | IInterfaceNode
@@ -183,10 +183,10 @@ public class JSGoogEmitter extends JSEmitter implements IJSGoogEmitter
             return;
         }
         
-        IFunctionDefinition func = findFunction(containedScope.getAllLocalDefinitions());
+        IFunctionDefinition func = EmitterUtils.findFunction(containedScope.getAllLocalDefinitions());
         if (func != null)
         {
-            IFunctionNode fnode = findFunctionNode(definition.getNode());
+            IFunctionNode fnode = EmitterUtils.findFunctionNode(definition.getNode());
             if (fnode != null)
             {
                 getWalker().walk(fnode);
@@ -194,10 +194,10 @@ public class JSGoogEmitter extends JSEmitter implements IJSGoogEmitter
             return;
         }
 
-        IVariableDefinition variable = findVariable(containedScope.getAllLocalDefinitions());
+        IVariableDefinition variable = EmitterUtils.findVariable(containedScope.getAllLocalDefinitions());
         if (variable != null)
         {
-            IVariableNode vnode = findVariableNode(definition.getNode());
+            IVariableNode vnode = EmitterUtils.findVariableNode(definition.getNode());
             if (vnode != null)
             {
                 getWalker().walk(vnode);


Mime
View raw message