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 1827a703454842da07c08ccd47aeb8a2678086aa Author: Alex Harui <[email protected]> AuthorDate: Thu Feb 22 09:41:13 2018 -0800 GCC says Object doesn't coerce to Function so we have to type cast it --- .../royale/compiler/internal/codegen/js/jx/AsIsEmitter.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/AsIsEmitter.java b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/AsIsEmitter.java index 9c1fe5c..67346f3 100644 --- a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/AsIsEmitter.java +++ b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/AsIsEmitter.java @@ -21,6 +21,7 @@ package org.apache.royale.compiler.internal.codegen.js.jx; import org.apache.royale.compiler.asdoc.royale.ASDocComment; import org.apache.royale.compiler.codegen.js.IJSEmitter; +import org.apache.royale.compiler.constants.IASLanguageConstants; import org.apache.royale.compiler.definitions.IClassDefinition; import org.apache.royale.compiler.definitions.IDefinition; import org.apache.royale.compiler.internal.codegen.as.ASEmitterTokens; @@ -123,7 +124,15 @@ public class AsIsEmitter extends JSSubEmitter } if (!emit) { + if (dnode.getQualifiedName().equals(IASLanguageConstants.Function)) + { + write(" /** @type {Function} */ ("); + } getWalker().walk(left); + if (dnode.getQualifiedName().equals(IASLanguageConstants.Function)) + { + write(")"); + } return; } } -- To stop receiving notification emails like this one, please contact [email protected].
