apache / royale-compiler

Apache Royale Compiler
https://royale.apache.org/
Apache License 2.0
95 stars 49 forks source link

(JX) Some member-access and dynamic-access js outputs are missing closing parenthesis #198

Closed greg-dove closed 2 years ago

greg-dove commented 2 years ago

Example:

var dateDiff:int = -(d.date); //where d is a Date instance

var negated:int = -(collection[0]); //where collection is mx.collections.ArrayCollection (Proxy)

Similar issues are possible with XMLLists as other 'special' cases.

This is because there is the possibility for an opening parenthesis, but in the special cases, no matching closing parenthesis is being emitted.