flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ftho...@apache.org
Subject [8/9] git commit: [flex-falcon] [refs/heads/develop] - Use process instead of shouldTraverse
Date Thu, 09 Jul 2015 14:55:17 GMT
Use process instead of shouldTraverse


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

Branch: refs/heads/develop
Commit: 134f1020b3752fdc2097b15b48d7b76c1bb3e3f9
Parents: 986dd24
Author: Frédéric THOMAS <webdoublefx@gmail.com>
Authored: Thu Jul 9 15:42:48 2015 +0100
Committer: Frédéric THOMAS <webdoublefx@gmail.com>
Committed: Thu Jul 9 15:42:48 2015 +0100

----------------------------------------------------------------------
 .../internal/codegen/externals/pass/CollectImportsPass.java | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/134f1020/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/pass/CollectImportsPass.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/pass/CollectImportsPass.java
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/pass/CollectImportsPass.java
index 363eb2d..69af334 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/pass/CollectImportsPass.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/pass/CollectImportsPass.java
@@ -20,7 +20,7 @@ public class CollectImportsPass extends AbstractCompilerPass
     }
 
     @Override
-    public boolean shouldTraverse(final NodeTraversal nodeTraversal, final Node n, final
Node parent)
+    public void process(Node externs, Node root)
     {
         for (ClassReference reference : model.getClasses())
         {
@@ -31,8 +31,6 @@ public class CollectImportsPass extends AbstractCompilerPass
         {
             collectFunctionImports(reference);
         }
-
-        return false;
     }
 
     private void collectClassImports(ClassReference reference)
@@ -161,6 +159,11 @@ public class CollectImportsPass extends AbstractCompilerPass
     }
 
     @Override
+    public boolean shouldTraverse(final NodeTraversal nodeTraversal, final Node n, final
Node parent) {
+        return false;
+    }
+
+    @Override
     public void visit(final NodeTraversal t, final Node n, final Node parent)
     {
     }


Mime
View raw message