If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler
NEW : You can now close your own issues and reopen them later if needed. You can also comment closed issues.
List of issues#593 AS3 Return object newline problem
Author:
focus
focusDate created:
Type: bug
Visibility: Everybody
Assigned to:
JPEXS
JPEXSLabels: AS3
State: closed 

Please take a look at the attached file.
Class: com.gaiaframework.core.GaiaImpl
Method: getSitePosition();
It decompiles to:
public function getSitePosition() : Object {
return
{
"x":SiteView.instance.x,
"y":SiteView.instance.y
};
}
and it refuses to compile back with these errors:
GaiaImpl.as(70): col: 19 Error: Label must be a simple identifier.
"x":SiteView.instance.x,
^
GaiaImpl.as(71): col: 19 Error: Label must be a simple identifier.
"y":SiteView.instance.y
Regarding to
https://github.com/stevensacks/Gaia-Framework/blob/master/framework/as3/classes/com/gaiafr
amework/core/GaiaImpl.as#L71
it should decompile to this:
public function getSitePosition():Object
{
return {x:SiteView.instance.x, y:SiteView.instance.y};
}
and it compiles fine.
main.swf (171 KiB)It should work in latest nightly. Try it.
State: opened→upgraded
Fine now, thanks!
State: upgraded→closed
