You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above code won't work because the await macro runs first. After that the typer kicks in and transform the macro call to actual expression. As a result, the generated expression (@:await string()) won't get handled by the await macro.
So, are there any workarounds for that?
The text was updated successfully, but these errors were encountered:
Well, I had a look at that when #10 popped up. Seems like expression macros run when you use Context.typeExpr on an expression. But it only worked when applied to every expression, not the full body. It also failed multiple times with errors I couldn't catch. Anyway, that's when I gave up :) So we'll have to wait until haxe gives us a proper way to run all expression macros during type building.
The above code won't work because the await macro runs first. After that the typer kicks in and transform the macro call to actual expression. As a result, the generated expression (
@:await string()
) won't get handled by the await macro.So, are there any workarounds for that?
The text was updated successfully, but these errors were encountered: