We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sometimes it is very useful to be able to add comments to generated code when using scalameta. Currently this is not possible.
val instances: List[Stat] = cases.map(c => q""" // ${c.comment} case object ${c.name.termName} extends $init""") /* can't unquote into single-line comments ${c.comment} */
This is the same with multi-line comments.
The text was updated successfully, but these errors were encountered:
Thanks for raising this! As mentioned on discord there was a previous discussion at #1137 (comment)
It seems that having comments in quasiquotes is most problematic, we could do attachements or special AST nodes that woul pretty print correctly.
Sorry, something went wrong.
No branches or pull requests
Sometimes it is very useful to be able to add comments to generated code when using scalameta.
Currently this is not possible.
This is the same with multi-line comments.
The text was updated successfully, but these errors were encountered: