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/01/11 06:45:02 UTC
[royale-compiler] 03/10: don't warn on internal vars
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 6f487d3b53093b5857e9d076a5b4af99b454069c
Author: Alex Harui <ah...@apache.org>
AuthorDate: Tue Jan 8 09:58:48 2019 -0800
don't warn on internal vars
---
.../royale/compiler/internal/codegen/js/royale/JSRoyaleDocEmitter.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/royale/JSRoyaleDocEmitter.java b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/royale/JSRoyaleDocEmitter.java
index 02c5eca..d6a957f 100644
--- a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/royale/JSRoyaleDocEmitter.java
+++ b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/royale/JSRoyaleDocEmitter.java
@@ -436,7 +436,7 @@ public class JSRoyaleDocEmitter extends JSGoogDocEmitter
if (tag != null)
bindable = true;
}
- if (warnPublicVars && !node.isConst() && !bindable)
+ if (warnPublicVars && !node.isConst() && !bindable && !ns.contentEquals("internal"))
{
if (!suppressedWarning(node, fjp))
fjp.getProblems().add(new PublicVarWarningProblem(node));