Skip to content

[display] @position on case macro $i #6416

@Gama11

Description

@Gama11
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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions