Add "import xxxx.xxx" support on java class generation.
Closed this issue · 2 comments
sidneywang commented
How can I add "import xxx.xxx.xx" when generate a class file.
sidneywang commented
Is there any convenient way to do that?
I use toks! to make it.
udoprog commented
Yeah, you use imported tokens:
https://github.com/udoprog/genco/blob/master/src/java/mod.rs#L502
Examples here:
https://github.com/reproto/reproto/blob/master/lib/backend-java/src/compiler.rs#L82