You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2019/03/19 17:53:35 UTC
[royale-compiler] branch develop updated: report a better error if
tag doesn't match a class in the default property
This is an automated email from the ASF dual-hosted git repository.
aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
The following commit(s) were added to refs/heads/develop by this push:
new 3048473 report a better error if tag doesn't match a class in the default property
3048473 is described below
commit 3048473e51721e23fce1b2ca9bb8e2b5ae3181c2
Author: Alex Harui <ah...@apache.org>
AuthorDate: Tue Mar 19 10:53:14 2019 -0700
report a better error if tag doesn't match a class in the default property
---
.../compiler/internal/tree/mxml/MXMLClassReferenceNodeBase.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/compiler/src/main/java/org/apache/royale/compiler/internal/tree/mxml/MXMLClassReferenceNodeBase.java b/compiler/src/main/java/org/apache/royale/compiler/internal/tree/mxml/MXMLClassReferenceNodeBase.java
index 1327d7a..4c66aa4 100644
--- a/compiler/src/main/java/org/apache/royale/compiler/internal/tree/mxml/MXMLClassReferenceNodeBase.java
+++ b/compiler/src/main/java/org/apache/royale/compiler/internal/tree/mxml/MXMLClassReferenceNodeBase.java
@@ -51,6 +51,7 @@ import org.apache.royale.compiler.mxml.IMXMLUnitData;
import org.apache.royale.compiler.parsing.MXMLTokenTypes;
import org.apache.royale.compiler.problems.ICompilerProblem;
import org.apache.royale.compiler.problems.MXMLDuplicateChildTagProblem;
+import org.apache.royale.compiler.problems.MXMLUnresolvedTagProblem;
import org.apache.royale.compiler.projects.ICompilerProject;
import org.apache.royale.compiler.tree.ASTNodeID;
import org.apache.royale.compiler.tree.as.IASNode;
@@ -592,6 +593,11 @@ abstract class MXMLClassReferenceNodeBase extends MXMLNodeBase implements IMXMLC
}
}
}
+ if (processingDefaultProperty && definition == null)
+ {
+ builder.getProblems().add(new MXMLUnresolvedTagProblem(childTag));
+ return;
+ }
// Handle child tags that are something other than property/style/event tags
// or instance tags.