You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by jo...@apache.org on 2020/04/29 22:09:40 UTC

[royale-compiler] branch develop updated: MXMLScopeBuilder: don't copy problems from IMXMLDAta because that happens again later in MXMLFileNode (which results in duplicate problems) (closes #24)

This is an automated email from the ASF dual-hosted git repository.

joshtynjala 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 7a84db4  MXMLScopeBuilder: don't copy problems from IMXMLDAta because that happens again later in MXMLFileNode (which results in duplicate problems) (closes #24)
7a84db4 is described below

commit 7a84db4ba590b1904167cf23d634dbc2dce86248
Author: Josh Tynjala <jo...@apache.org>
AuthorDate: Wed Apr 29 15:09:30 2020 -0700

    MXMLScopeBuilder: don't copy problems from IMXMLDAta because that happens again later in MXMLFileNode (which results in duplicate problems) (closes #24)
---
 .../apache/royale/compiler/internal/parsing/mxml/MXMLScopeBuilder.java   | 1 -
 1 file changed, 1 deletion(-)

diff --git a/compiler/src/main/java/org/apache/royale/compiler/internal/parsing/mxml/MXMLScopeBuilder.java b/compiler/src/main/java/org/apache/royale/compiler/internal/parsing/mxml/MXMLScopeBuilder.java
index 74b308d..60e9353 100644
--- a/compiler/src/main/java/org/apache/royale/compiler/internal/parsing/mxml/MXMLScopeBuilder.java
+++ b/compiler/src/main/java/org/apache/royale/compiler/internal/parsing/mxml/MXMLScopeBuilder.java
@@ -107,7 +107,6 @@ public class MXMLScopeBuilder
         fileScope.addDefinition(packageDefinition);
         
         problems = new LinkedList<ICompilerProblem>();
-        problems.addAll(mxmlData.getProblems());
 
         includeHandler = new IncludeHandler(fileSpecGetter);
         includeHandler.setProjectAndCompilationUnit(project, compilationUnit);