-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
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
Support DocDef in reflection trees #7993
Comments
Imported From: https://issues.scala-lang.org/browse/SI-7993?orig=1 |
@cvogt said: |
anyone know the status on this? I feel like this came up recently, but can't remember where/why. |
The situation is actually a little more dire than just not being able to create methods with docstrings: it is impossible to match on a My particular use case is fixing shadaj/slinky#380 (which I'm fairly certain is the same issue). Even if the full power of |
Hi guys, is there any update on this?
And are getting errors when generating scaladoc:
|
@lauraaraviciute Nobody is working on this, to my knowledge. But it isn't obvious to me from the error message you've included whether it's actually the same problem. |
I believe my problem is similar to that of the https://stackoverflow.com/questions/42684101/scaladoc-generation-fails-when-referencing-methods-generated-by-annotation-macro |
It would be great if reflection could add support for DocDef Nodes (scala.tools.nsc.ast.Trees#DocDef). The use case is source code generation. Being able to add doc comments would make tree based (e.g. quasi quote based) source code generation more feasible. We could use this in Slick, but it should be useful in other cases as well, like adding assisting comments when printing out trees generated by macros for visualization or debugging in the IDE.
The text was updated successfully, but these errors were encountered: