Hello Community,
what am I doing wrong?
I try to
retrieve the
position of an
expression. At this moment I use a regEx ( EReg ) to filter out the interesting parts of the
String expr.posvar pos = expr.pos;
trace( "Pos: " + pos.file );
But I think, it could be an
increasing of
performance just to take position file string that is already stored (expr.pos.file).
The compiler denies any cooperation with me (probably my fault).
It tells:
haxe.macro.Position has no field file
... although the API tells something else.
I also have surrounded the requesting method with
#if macro #end
I feel like a total newby and want to excuse myself, to bother you with such a seemingly banal question.
I have made great experiences with this community. So I want to say thank you for being so supportive and respectful (which is not so certain for an expert community).
Kind regards
Michael