You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2019/02/05 01:54:25 UTC

[GitHub] aharui commented on issue #76: Named local functions inside method in MXML not emitted in JS

aharui commented on issue #76: Named local functions inside method in MXML not emitted in JS
URL: https://github.com/apache/royale-compiler/issues/76#issuecomment-460485136
 
 
   Script blocks in MXML are handled a bit differently than regular AS transpiling.  In regular AS, there is a ClassNode in the AST and the AST walk eventually gets down to functions with local functions.  In MXML ScriptBlocks there is no ClassNode in the AST and a ClassNode and/or ClassDefinition is assigned to the Emitter.  My guess is that the knowledge of local functions might be associated with something like a ClassNode but that association is invalid or broken when walking a Script block so the local function collection is lost to the code that needs it.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services