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 2018/12/17 07:41:20 UTC
[royale-compiler] 06/07: try suppressing duplicates to get externs
to work
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
commit 03818268fcaf79b627a1f55183fea3fb1439512b
Author: Alex Harui <ah...@apache.org>
AuthorDate: Sun Dec 16 23:09:59 2018 -0800
try suppressing duplicates to get externs to work
---
.../main/java/org/apache/royale/compiler/clients/MXMLJSCRoyale.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/clients/MXMLJSCRoyale.java b/compiler-jx/src/main/java/org/apache/royale/compiler/clients/MXMLJSCRoyale.java
index 96f1430..fa92700 100644
--- a/compiler-jx/src/main/java/org/apache/royale/compiler/clients/MXMLJSCRoyale.java
+++ b/compiler-jx/src/main/java/org/apache/royale/compiler/clients/MXMLJSCRoyale.java
@@ -508,9 +508,9 @@ public class MXMLJSCRoyale implements JSCompilerEntryPoint, ProblemQueryProvider
continue;
}
partNames.add(current);
- sb.append("/** @const */\n");
if (firstOne)
{
+ sb.append("/**\n * @suppress {duplicate}\n * @const\n */\n");
sb.append("var ");
firstOne = false;
}
@@ -630,9 +630,9 @@ public class MXMLJSCRoyale implements JSCompilerEntryPoint, ProblemQueryProvider
continue;
}
partNames.add(current);
- sb.append("/** @const */\n");
if (firstOne)
{
+ sb.append("/**\n * @suppress {duplicate}\n * @const\n */\n");
sb.append("var ");
firstOne = false;
}