flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject git commit: [flex-falcon] [refs/heads/develop] - Add error if baseclass not found
Date Tue, 03 Sep 2013 20:42:44 GMT
Updated Branches:
  refs/heads/develop d931c83cb -> 3efa7d00e


Add error if baseclass not found


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

Branch: refs/heads/develop
Commit: 3efa7d00eae1124781489bfa7f33ccf6d9b5e188
Parents: d931c83
Author: Alex Harui <aharui@apache.org>
Authored: Tue Sep 3 13:42:14 2013 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Tue Sep 3 13:42:39 2013 -0700

----------------------------------------------------------------------
 .../flex/compiler/internal/parsing/mxml/MXMLScopeBuilder.java | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3efa7d00/compiler/src/org/apache/flex/compiler/internal/parsing/mxml/MXMLScopeBuilder.java
----------------------------------------------------------------------
diff --git a/compiler/src/org/apache/flex/compiler/internal/parsing/mxml/MXMLScopeBuilder.java
b/compiler/src/org/apache/flex/compiler/internal/parsing/mxml/MXMLScopeBuilder.java
index f12db2c..7f7f999 100644
--- a/compiler/src/org/apache/flex/compiler/internal/parsing/mxml/MXMLScopeBuilder.java
+++ b/compiler/src/org/apache/flex/compiler/internal/parsing/mxml/MXMLScopeBuilder.java
@@ -67,6 +67,8 @@ import org.apache.flex.compiler.mxml.IMXMLNamespaceAttributeData;
 import org.apache.flex.compiler.mxml.IMXMLUnitData;
 import org.apache.flex.compiler.problems.ICompilerProblem;
 import org.apache.flex.compiler.problems.MXMLLibraryTagNotTheFirstChildProblem;
+import org.apache.flex.compiler.problems.MXMLUnresolvedTagProblem;
+
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Iterables;
 
@@ -210,7 +212,10 @@ public class MXMLScopeBuilder
         if (baseClass instanceof IResolvedQualifiersReference)
         {
             IDefinition baseDef = ((IResolvedQualifiersReference)baseClass).resolve(project);
-            currentClassScope.addImport(baseDef.getQualifiedName());           
+            if (baseDef == null)
+                problems.add(new MXMLUnresolvedTagProblem(rootTag));
+            else
+                currentClassScope.addImport(baseDef.getQualifiedName());           
         }
 
         currentClassDefinition.setContainedScope(currentClassScope);


Mime
View raw message