flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [1/5] git commit: [flex-falcon] [refs/heads/develop] - don't make compilation units for manifest entries that are lookup only
Date Thu, 24 Oct 2013 22:51:01 GMT
Updated Branches:
  refs/heads/develop ee9a0d0bd -> b08d11d2f


don't make compilation units for manifest entries that are lookup only


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

Branch: refs/heads/develop
Commit: 3905a777873569cde856209493e76c2751d5bbd3
Parents: ee9a0d0
Author: Alex Harui <aharui@apache.org>
Authored: Wed Oct 23 15:50:25 2013 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Wed Oct 23 15:50:25 2013 -0700

----------------------------------------------------------------------
 .../flex/compiler/internal/targets/SWCTarget.java   | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3905a777/compiler/src/org/apache/flex/compiler/internal/targets/SWCTarget.java
----------------------------------------------------------------------
diff --git a/compiler/src/org/apache/flex/compiler/internal/targets/SWCTarget.java b/compiler/src/org/apache/flex/compiler/internal/targets/SWCTarget.java
index 74b2108..17cf971 100644
--- a/compiler/src/org/apache/flex/compiler/internal/targets/SWCTarget.java
+++ b/compiler/src/org/apache/flex/compiler/internal/targets/SWCTarget.java
@@ -768,9 +768,23 @@ public class SWCTarget extends Target implements ISWCTarget
             Collection<String> classNames,
             final Collection<ICompilerProblem> problems)
     {
+        Collection<String> compilableClassNames = new ArrayList<String>();
+        for (String className : classNames)
+        {
+            Collection<XMLName> tagNames = flexProject.getTagNamesForClass(className);
+            boolean okToAdd = false;
+            for (XMLName tagName : tagNames)
+            {
+                if (!flexProject.isManifestComponentLookupOnly(tagName))
+                    okToAdd = true;
+            }
+            if (okToAdd)
+                compilableClassNames.add(className);
+        }
+        
         // Class names are turned into references and then info compilation units.
         final Iterable<IResolvedQualifiersReference> references = 
-            Iterables.transform(classNames, new Function<String, IResolvedQualifiersReference>()
+            Iterables.transform(compilableClassNames, new Function<String, IResolvedQualifiersReference>()
                 {
                     @Override
                     public IResolvedQualifiersReference apply(String qualifiedName)


Mime
View raw message