flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: Variable Renaming (was Re: [Falcon] Proposal for new ActionScript language feature: Optionally rename an import)
Date Wed, 05 Oct 2016 18:26:39 GMT


On 10/5/16, 11:10 AM, "Harbs" <harbs.lists@gmail.com> wrote:

>So, this is only an issue for static functions and vars? Constants should
>be fine. Right?

Actually, only for static getters and setters.  The output for vars,
consts and functions are not being changed at all and GCC will rename them
and set up aliases for them, which seems to work fine, because GCC will
use the same new variable name for all references to the static var,
const, or function, since they are declared via the standard:

    Class.someStaticVarConstOrFunction = ...

GCC does not understand that getter/setter names in the
Object.defineProperties structure we use in our output also belongs to the
same class so it picks a new variable name and thus the getter/setter
don't get called.

HTH,
-Alex

Mime
View raw message