This is an automated email from the ASF dual-hosted git repository. piotrz 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 acfddf6 wrap attributes type of function with Language.closure acfddf6 is described below commit acfddf6a3d5b96c915853bdd5aebf0780a3d08a5 Author: Piotr Zarzycki <piotrzarzyck...@gmail.com> AuthorDate: Tue Oct 29 10:23:54 2019 +0100 wrap attributes type of function with Language.closure (reference #472) --- .../internal/codegen/mxml/royale/MXMLRoyaleEmitter.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/mxml/royale/MXMLRoyaleEmitter.java b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/mxml/royale/MXMLRoyaleEmitter.java index 8023ea2..a5e4fd7 100644 --- a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/mxml/royale/MXMLRoyaleEmitter.java +++ b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/mxml/royale/MXMLRoyaleEmitter.java @@ -2173,10 +2173,13 @@ public class MXMLRoyaleEmitter extends MXMLEmitter implements MXMLDescriptorSpecifier currentPropertySpecifier = getCurrentDescriptor("ps"); if (nodeID == ASTNodeID.MXMLFunctionID) { - currentPropertySpecifier.value = ASEmitterTokens.THIS.getToken() + - ASEmitterTokens.MEMBER_ACCESS.getToken() + - ((MXMLFunctionNode)node).getValue((ICompilerProject) getMXMLWalker() - .getProject()).getBaseName(); + currentPropertySpecifier.value = JSRoyaleEmitterTokens.CLOSURE_FUNCTION_NAME.getToken() + ASEmitterTokens.PAREN_OPEN.getToken() + + ASEmitterTokens.THIS.getToken() + ASEmitterTokens.MEMBER_ACCESS.getToken() + + ((MXMLFunctionNode)node).getValue((ICompilerProject) getMXMLWalker().getProject()).getBaseName() + + ASEmitterTokens.COMMA.getToken() + ASEmitterTokens.SPACE.getToken() + ASEmitterTokens.THIS.getToken() + + ASEmitterTokens.COMMA.getToken() + ASEmitterTokens.SPACE.getToken() + ASEmitterTokens.SINGLE_QUOTE.getToken() + + ((MXMLFunctionNode)node).getValue((ICompilerProject) getMXMLWalker().getProject()).getBaseName() + + ASEmitterTokens.SINGLE_QUOTE.getToken() + ASEmitterTokens.PAREN_CLOSE.getToken(); return; }