Hello, I have a macro I'm putting on an Impl block that takes methods in the block and generates message structs for them:
#[make_messages]
impl Foo {
fn test(&self, num: usize)
}
Outputs:
struct FooTestMessage(usize);
Ignoring the fact that I could do this per method instead of over the whole impl block, I'm hitting an issue: the impl block is being consumed and I can't figure out how to write it back properly.
I've attempted to clone the token stream of the block and extend it with my new struct definitions, but it ends up outputting impl Foo {} without any of the methods in the block.
Thanks in advance for any help!