Can syntax extensions be applied to impl methods? I have a working syntax extension that applies to a function, but it doesn’t seem like there’s a way to apply them to anything that’s not an
ast::Item, like an
impl method without applying them to the
impl itself. I know syntax extensions aren’t stable, but has this issue (syntax extensions only applying to
Items) been brought up/thought of before?
Also, can I write a syntax extension that can examine all the methods in a file? I know that I can apply an attribute to a module, but I have to do that above a
mod declaration. Is there any way to do that inside a module itself?