-
-
Notifications
You must be signed in to change notification settings - Fork 655
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
haxe.PosInfos and macro #11712
Comments
currentPos produces a Position is part of the AST and separate and distinct from The try.haxe link is showing
|
Sorry, I've given wrong url to try haxe for error, this is the correct one : https://try.haxe.org/#DeBb38Fb :
And ok, but I throwed this issue just to maybe uniform the behaviour because i.e. for init macro, |
Hej,
When using
?pos : haxe.PosInfos
as last argument onto a macro function (inline expression) I get this message :haxe.PosInfos is not allowed on macro functions, use Context.currentPos() instead
But It still works when using init macro functions, Idk if it's normal (I use it to get the call
{methodName: toString, fileName: --macro Macro.test(), className: , lineNumber: 1}
becausehaxe.macro.Context.currentPos()
gives#pos((unknown))
and it would be handy if it gave us the build file position or something like that...And I get compiler error when doing that on build macro functions : https://try.haxe.org/#4C2d8a8e
Regards,
The text was updated successfully, but these errors were encountered: