Skip to content

Conversation

fwienber
Copy link
Member

ActionScript static class code was formerly represented in TypeScript by a static private member with a self-evaluating initializer.
Since version 4.4, TypeScript supports the ECMAScript proposal for static class code blocks.
We now use these to represent AS3 static class code. This simplifies the TypeScript output a bit, but we must move the static code block to the end of the class, as forward references to static members are not allowed in ECMAScript (but they were allowed in ActionScript).

ActionScript static class code was formerly represented
in TypeScript by a static private member with a
self-evaluating initializer.

Since version 4.4, TypeScript supports the ECMAScript
proposal for static class code blocks.
We now use these to represent AS3 static class code.
This simplifies the TypeScript output a bit, but we
must move the static code block to the end of the class,
as forward references to static members are not allowed
in ECMAScript (but they were allowed in ActionScript).
@aholtkamp aholtkamp force-pushed the master-4.1 branch 2 times, most recently from 23139de to 56ea568 Compare December 14, 2021 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant