I’ve seen the official snippets on the Haxe website.
What I’m trying to do is have a macro function that can take a list of interfaces, IUserService, etc and generate REST routes automatically for my web server, SideWinder. In that case I need to pass a list of interfaces and be able to detect methods that include Metadata, detect parameters for the methods, and then do something with that (generate code that automatically receives get, post, etc and calls a instance of a class that implements the interface).
You can mark your interfaces with @:autoBuild and it will add @:build meta to all classes that implement them, maybe this can be good enough for you? Then in linked macro you can get fields of these classes and do things.