Closed kevinresol closed 8 years ago
Thanks for the example, I'll have a look at it. It could be fairly complex, or simply the way I handle blocks, can't tell at this time.
This should work with the last update. No processing is done on blocks that do not contain @:await or @:async. This will fix this issue, but will fail if you're using @:await inside of Macro.tryCatch
. There's not much I can do to fix that. I've tried running those expression macros before transforming, but I can't find a reliable way to do so and the haxe docs are clear that the build order is unspecified and shouldn't be relied on.
This seem to work for now. Thanks!
The above code outputs something like this:
Note that
var i = Main.int(); i *= i;
got moved out of the try block, I think that shouldn't happen.