class Main {
static function main() {}
macro function foo(e:haxe.macro.Expr) {
switch (e) {
case macro $i{foo}:
foo;
}
}
}
Requesting the position of the foo usage works fine, but in the case line before that it takes you to CIdent:
> haxe --display Main.hx@120@position
<list>
<pos>C:\Users\Jens\GitHub\haxe\std\haxe\macro\Expr.hx:72: characters 2-23</pos>
</list>